Package com.google.code.facebookapi

Source Code of com.google.code.facebookapi.Issue30InfoMusicListTest

package com.google.code.facebookapi;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import org.junit.Test;

import com.google.code.facebookapi.schema.User;
import com.google.code.facebookapi.schema.UsersGetInfoResponse;

public class Issue30InfoMusicListTest {

  @Test
  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() );
  }

}
TOP

Related Classes of com.google.code.facebookapi.Issue30InfoMusicListTest

TOP
Copyright © 2018 www.massapi.com. 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.