如何通过 php 获取 Facebook 页面 id?
假设我有一个 Facebook 页面链接 http://facebook.com/page_name
并且我不是该页面的管理员。是否可以找到 Facebook ID、页面的个人资料图片和粉丝数?
谢谢!
Suppose i have a facebook page link http://facebook.com/page_name
and i am not the admin of the page. Is it possible to find out the facebook id, profile pics of the page and fan count?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
通常,您可以执行 http://graph.facebook.com/{page_name} 并收到适当的结果。例如,百事可乐位于 http://www.facebook.com/pepsi,您可以看到该图表API 结果位于 https://graph.facebook.com/pepsi。
Typically you can do http://graph.facebook.com/{page_name} and receive the appropriate results. For example, Pepsi is at http://www.facebook.com/pepsi and you can see the graph API results at https://graph.facebook.com/pepsi.
您可以使用 Facebook SDK for PHP https://github.com/facebook/php-graph-sdk
下面是我的解决方案
You can use Facebook SDK for PHP https://github.com/facebook/php-graph-sdk
Below my solution
FB id 和一些信息:是的。请参阅Graph API 文档。
编辑:
从我的应用程序获取 id 的一些代码:
FB id and some informations: yes. See Graph API docs.
edit:
Some code to get id from my app: