Package org.springframework.social.facebook.api

Examples of org.springframework.social.facebook.api.Facebook


  @Test
  public void getUserPermissions() {
    TestUser evie = createTestUser("Evie Starlight", "email,user_birthday,user_about_me");
    FacebookServiceProvider provider = new FacebookServiceProvider(APP_ID, APP_SECRET, APP_NAMESPACE);
    Facebook evieFb = provider.getApi(evie.getAccessToken());
    PagedList<String> permissions = evieFb.userOperations().getUserPermissions();
    List<String> expectedPermissions = Arrays.asList("installed", "basic_info", "public_profile", "email", "user_birthday", "user_friends", "user_about_me");
    assertEquals(expectedPermissions, permissions);
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.facebook.api.Facebook

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.