Skip to content Skip to sidebar Skip to footer

Get User Profile Facebook Using Oficial Facebook-android-sdk

i am using facebook-android-sdk for a single sign on, but i can`t get user facebook profile data. this is my code: try { JSONObject me = new JSONObject(facebook.request

Solution 1:

Provided that you logged in.

AsyncFacebookRunnermyAsyncRunner=newAsyncFacebookRunner(facebook);
myAsyncRunner.request("me", newmeRequestListener());

The request listener:

publicclassmeRequestListenerimplementsRequestListener() {

    @OverridepublicvoidonComplete(String response, Object state) {
        //response is your JSON response
    }

    //You also have to override all the other methods
}

Post a Comment for "Get User Profile Facebook Using Oficial Facebook-android-sdk"