Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: How to get friends birth dates from facebook calendar using Graph API
    primarykey
    data
    text
    <p>I'm working on application which need birth dates of all friends. Can some body share code how to get birth dates of all friends using graph API. I'm using following code:</p> <pre><code>// start Facebook Login Session.openActiveSession(this, true, new Session.StatusCallback() { // callback when session changes state @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { // make request to the Request.executeMyFriendsRequestAsync(session, new Request.GraphUserListCallback() { @Override public void onCompleted(List&lt;GraphUser&gt; users, Response response) { //Log.d("AL",""+users.size() + response.toString()); for (int i=0;i&lt;users.size();i++){ Log.d("AL",""+users.get(i).toString()); welcome.setText("Done"); } } }); } } }); </code></pre> <p>And this is only returning friends name and id only. Where I have to set permissions to get friends birthday? I'm new in facebook SDK. And using SDK v3.</p> <p>graph api is returning following json result</p> <pre><code>{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[{"id":"1580811776","name":"Jamal Abdul Nasir"},{"id":"1610349118","name":"Ahmed Nawaz"}],"paging":{"next":"https:\/\/graph.facebook.com\/100004790803061\/friends?format=json&amp;access_token=AAABtTr8g5U4BANiJdCiBFxQeg0l1eqYYzmSWVM8G1UlyAhTtUrAsoEZAgU19dECXTE2nw7pHIz8bDb7OJGM4wAwzusOVZAQN8yaiYVsQZDZD&amp;limit=5000&amp;offset=5000&amp;__after_id=1610349118"}}}, error: null, isFromCache:false} </code></pre> <p>which does not have birthday.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload