最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to get facebook page id from facebook page name - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 4

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./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

发布评论

评论列表(0)

  1. 暂无评论