Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook friends information with Facebook Android SDK, JSON breaking
    primarykey
    data
    text
    <p>Got stuck in a situation. I'm totally new to android. I used Facebook Android SDK <a href="https://github.com/facebook/facebook-android-sdk" rel="nofollow noreferrer">https://github.com/facebook/facebook-android-sdk</a></p> <p>I followed this tutorial <a href="http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/" rel="nofollow noreferrer">http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application/</a> </p> <p>this helps me to log in and post to user's wall. Now I want to collect friends' information.</p> <p>From this topic <a href="https://stackoverflow.com/questions/4628822/facebook-api-for-android-how-to-get-extended-info-regarding-users-friends">Facebook API for Android: how to get extended info regarding user`s friends?</a> I found a simple way to do that.</p> <pre><code>Bundle bdle=new Bundle(); bdle.putString("fields","birthday"); JSONObject json = Util.parseJson(facebook.request("me/friends",bdle)); </code></pre> <p>Now when I print this json,I can see id and birth dates. Now I can't find a way to separate them and also not found anything on search. It gives me all friends' ID and birth dates all together. something like :</p> <blockquote> <p>{"data":[{"id":"12345","birthday":03/29"},{"id":"12678","birthday":06/22"}],.......</p> </blockquote> <p>I preferred this ,because it prevents application to fetch a single friend's id to get a single date,rather provides me altogether.</p> <p>Now please help me to break this json and separate this information into two array,like a[1]="12345";b[1]="03/29"</p> <p>And if anyone can provide me any simple example/tutorial link on facebook integration with android specially in asynchronous way that would be a great help. </p>
    singulars
    1. This table or related slice is empty.
    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.
    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