Home How to get Facebook Photos Url in login Response?
Reply: 0

How to get Facebook Photos Url in login Response?

user1213
1#
user1213 Published in June 20, 2018, 12:06 am

I am getting Ids of photos and i want to have the urls for that see my code below.

 callbackManager = CallbackManager.Factory.create();
    LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
        @Override
        public void onSuccess(LoginResult loginResult) {
            GraphRequest request = GraphRequest.newMeRequest(
                    loginResult.getAccessToken(),
                    new GraphRequest.GraphJSONObjectCallback() {
                        @Override
                        public void onCompleted(JSONObject object, GraphResponse response) {
                            parseFbResponse(object);
                        }
                    });

            Bundle parameters = new Bundle();
            parameters.putString("fields", "id,name,email,birthday,work,about,photos.limit(6){link}");
            request.setParameters(parameters);
            request.executeAsync();

Response -

{}photos
  []data
    {}0
      created_time : "2017-12-25T07:04:31+0000"
      name : "♥️♥️♥️♥️😘😘😘😘😘"
      id : "2534011966656881"
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.310272 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO