简体   繁体   中英

Android-facebook integration

Can anyone tell me how to display facebook multifriend window in an android application? I am new to android an I don't know how to do this.Could someone assist me..Thanx in advance..

Have you gone through the Facebook Android Tutorial ?.

You can make use of the Graph API to query for friends and for example display their photos in a GridView.

// get information about the currently logged in user
mAsyncRunner.request("me", new meRequestListener());

// get the posts made by the "platform" page
mAsyncRunner.request("platform/posts", new pageRequestListener());

// get the logged-in user's friends
mAsyncRunner.request("me/friends", new friendsRequestListener());

The best solution is to use Facebook sdk. full details can be found at https://developers.facebook.com/docs/mobile/android/build/#sample

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM