Package com.google.code.facebookapi.schema

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


  public void test_getUserMusic() throws Exception {
    FacebookJaxbRestClient client = FacebookSessionTestUtils.getValidClient( FacebookJaxbRestClient.class );
    long uid = client.users_getLoggedInUser();
    Set<CharSequence> fields = new HashSet<CharSequence>( Arrays.asList( "uid", "music" ) );
    UsersGetInfoResponse response = client.users_getInfo( Arrays.asList( uid ), fields );
    User user = response.getUser().get( 0 );
    System.out.println( "music:" + user.getMusic() );
    // System.out.println( "music-raw:" + client.getRawResponse() );
  }
View Full Code Here


    profileFields.add( ProfileField.NAME );

    UsersGetStandardInfoResponse response = client.users_getStandardInfo( userIds, profileFields );

    User user = response.getUser().get( 0 );

    assertNotNull( user.getName() );
    assertNotSame( "", user.getName().trim() );
  }
View Full Code Here

TOP

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

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.