How to get an facebook access token for URL
i need to get ids of users w开发者_运维百科ho likes particular url, i get an facebook URL object id through FQL
SELECT id FROM object_url WHERE url = 'myurl'
In return i get for example 500504199505
Now, when i need to get the list of users who likes that url, i need to use graph api like that:
https://graph.facebook.com/500504199505
Or FQL like that:
SELECT user_id FROM like WHERE object_id='500504199505'
But!!!! For that i need an authorisation token.
So you have to provide an access token with your request associated with an admin account of the page you are trying to get the fans.
But i have just used a social plugin and pasted it to my site, so how can i get that token, how can i be an administrator of particular URL. I am bit confused.
Thanks for help anyone!
Check out:
- Facebook Graph API — getting access tokens
Hope that helps.
精彩评论