After OAuth with facebook , how do I get the graph of the pages created by user? I search over the documentation and event search inside the callback that facebook send me after the OAuth , I still can't get the pages that the user create , I have to use FQL for this? And how do I use FQL in rails?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- facebook error invalid key hash for some devices
- Eager-loading association count with Arel (Rails 3
- LoginActivty with Firebase & Facebook authenticati
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- Facebook login for group members
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
You can use the graph api to query for this information after you have logged in using OAuth.
Facebook uses an unintuitive name for this interface - accounts. The URL you are looking for is - https://graph.facebook.com/me/accounts?access_token= < your_access_token >
This should list out a JSON array of objects that have been created by the logged in user. The pages created by the user will be in this list along with the list of pages that they are fans of.
After authentication you receive a token. Use it to request graph API and you are authenticated with user depend of this token.