Show friends on application

287 Views Asked by At

I have a FB app. I need to have a functionality similar to which is present on Washington post reader that shows friends on the app.

Is it FB facepile? If so, then how have they implemented to show more than 4 friends with a button? Have they implemented it server side ?

1

There are 1 best solutions below

2
Oklahomer On

You can use FQL to retrieve friends using the same app.
Simply use the query below and you should be able to get frineds' uid, name and is_app_user.
*is_app_user* indicates if a given user is using your app or not.

select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1