I’m using Eclipse FDT to write a Flex application for facebook on a facebook page.
I want to be able to fetch the friends list of that same user and to distinguish between friends who installed the app and friends who didn’t.
I searched on stackoverflow and I saw that users did that using the old REST API, the question is can I do that with graph api ?
if it’s not possible using graph api at all… so how to do with REST API ?! 🙂
with the following request:
https://graph.facebook.com/me/friends?access_token?XXX
I can fetch the list of friends of that user. but it doesn’t provide a flag if my app is installed. what can I do exactly and how ?!
Thanks!
You have two ways to do it, with the graph api and with fql.
Using the graph api you can make a request to: /me/friends?fields=installed which should return a list of users, the ones that have the app installed will have this form:
The ones who don’t have the app will be of this form:
With FQL use this query: