Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ios facebook get friendlist who play the same app

I can get the friendlist by

[facebook requestWithGraphPath:@"me/friends" andDelegate:self];

But the list contain all the friends, how could I get the friendlist that only played the app.

like image 298
Jack Shan Avatar asked Oct 31 '11 06:10

Jack Shan


2 Answers

You can query the OpenGraph for the field installed:

[facebook requestWithGraphPath:@"me/friends?fields=installed,name"
                                             andParams:params
                                         andHttpMethod:httpMethod
                                           andDelegate:delegate]; 

That will return you a list of friends, in which some will have the field installed=1

like image 191
Angel G. Olloqui Avatar answered Nov 03 '22 08:11

Angel G. Olloqui


This gives you a list of your friends that have the app installed

friend.getAppUsers()

like image 1
Rahul Chavan Avatar answered Nov 03 '22 09:11

Rahul Chavan