Package com.google.code.facebookapi.schema

Examples of com.google.code.facebookapi.schema.AppInfo


  @Test
  public void testAppInfo() throws Exception {
    FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );

    // Stuff application
    AppInfo appInfo = client.application_getPublicInfoByApiKey( stuffAPIKEY_ExistsInDirectory );

    assertNotNull( appInfo.getAppId() );
    assertNotNull( appInfo.getApiKey() );
    assertNotNull( appInfo.getCanvasName() );
    assertNotNull( appInfo.getCompanyName() );
    assertNotNull( appInfo.getIconUrl() );
    assertNotNull( appInfo.getLogoUrl() );
    assertNotNull( appInfo.getDescription() );
    assertTrue( appInfo.getDailyActiveUsers() > -1 );
    assertTrue( appInfo.getWeeklyActiveUsers() > -1 );
    assertTrue( appInfo.getMonthlyActiveUsers() > -1 );

    // Now lookup by application id
    appInfo = client.application_getPublicInfoById( appInfo.getAppId() );

    assertEquals( stuffAPIKEY_ExistsInDirectory, appInfo.getApiKey() );
  }
View Full Code Here

TOP

Related Classes of com.google.code.facebookapi.schema.AppInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.