I need to fetch page id of a facebook page of a given URL in graph API.
e.g this is the URL http://www.facebook.com/platform and I want to get the page id of this facebook page.
I tried all the possible solution but failed. Please any one help me….Please…
Thanx!
Facebook-graph-api – How to get page id of a facebook page
facebook-graph-api
Related Topic
- Facebook Access Token for Pages
- Facebook – FB OpenGraph og:image not pulling images (possibly https?)
- Facebook Graph API – Get ID from Facebook Page URL
- Facebook how to get actual photo URL using Graph API
- Facebook: permanent Page Access Token
- Facebook – Get username field in Facebook Graph API 2.0
- R – viewDidAppear Not Firing in Tabbarcontroller>NavigationController>UITableView
Best Answer
The answers given before Oct 27, 2015 no longer work, and the other answer given after that is not dynamic, but requires site scraping. This answer provides the necessary
URLs
.1) Get your App-id and App-secret by choosing an existing app or creating a new one at this url:
2) Get an access token by making a GET request to this url:
3) To get the page-id of your fan page, you need the page-name. Go to your fan page on facebook and look at the url. It will have this form:
Once you have that, make a GET request to this url:
It will return a bunch of JSON. You're looking for the first "id" element. This is your page-id.
See my answer here.