I'd like to know how to get fb page id from fb page name.
As you can see here it shows number of likes from facebook page name.
How can I do this? Any help would be appreciate.
I'd like to know how to get fb page id from fb page name.
As you can see here it shows number of likes from facebook page name.
How can I do this? Any help would be appreciate.
Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Oct 5, 2016 at 15:47 JinJin 9321 gold badge12 silver badges39 bronze badges1 Answer
Reset to default 4It´s a simple API call:
/page-name?fields=id,name,fan_count
You will get the ID, the name of the Page and the likes. For example: https://developers.facebook./tools/explorer/?method=GET&path=bladauhu%3Ffields%3Did%2Cname%2Cfan_count&version=v2.8
Result:
{
"id": "186482018683",
"name": "SV Blada UHU",
"fan_count": 218
}
You can also use the Search API if you want to search for a Page by its full name: https://developers.facebook./docs/graph-api/using-graph-api#search
For example: https://developers.facebook./tools/explorer/?method=GET&path=search%3Ftype%3Dpage%26q%3DBottom%20of%20the%20Hill&version=v2.8