Ios facebook get a list of friends who play in one application

I can get a list of friends

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

But the list contains all friends, how can I get a list of friends that only played the application.

+6
source share
2 answers

You can request OpenGraph for the installed field:

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

This will return you a list of friends in which some will have a set field = 1

+3
source

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

friend.getAppUsers ()

+1
source

Source: https://habr.com/ru/post/900409/


All Articles