Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Facebook SDK Android Graph API Request
Bundle params = new Bundle();
params.putString( "fields", "fields=id,username,name,first_name,last_name,picture" );
final Request request = new Request( Session.getActiveSession(), "me", params, HttpMethod.GET, new Request.Callback() {
@Override
public void onCompleted(Response response) {
Log.d( "FacebookConnect", "FacebookConnect > retrieveUserData responds: " + response.toString() );
Log.d( "FacebookConnect", "FacebookConnect > retrieveUserData graphObject: " + response.getGraphObject() );
Log.d( "FacebookConnect", "FacebookConnect > retrieveUserData graphObjectList: " + response.getGraphObjectList() );
}
});
activity.runOnUiThread( new Runnable() {
@Override
public void run() {
request.executeAsync();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.