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.
It´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.com/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.com/docs/graph-api/using-graph-api#search