After a user install my application to his/her facebook page,I want to get his/her facebook pages and apps list.
I have read these documents:
http://developers.facebook.com/docs/reference/fql/application/
http://developers.facebo开发者_运维技巧ok.com/docs/reference/fql/developer/
What is the best way to do?
Another question:
How to check if a user is my app's user?
It sounds like you haven't really looked at the documentation, but they are fairly clear questions, so...
After getting the
user_likes
permission you can query/me/likes
to get a list of pages the user likes. A list of apps is not currently possible in the same way.A call to
/me/permissions
or/me/?fields=installed
will show if the current app is installed by the current userA call to
/me/accounts
with the 'manage_pages' permission will show which pages and apps a user admins, but not which pages and apps they use.
You can use FQL to query this information.
select uid, name, is_app_user from user where uid in (select uid2 from friend where uid1=me()) and is_app_user=1
The user needs to allow (and be user of) your app in order to be able to authenticate though oauth.
You can list the user's pages and apps by accessing:
https://graph.facebook.com/me/accounts
or
https://graph.facebook.com/%user_id%/accounts
But you must also provide the user oauth token.
精彩评论