简体   繁体   English

如何使用Facebook的图形API获取Facebook页面数据?

[英]How to get the facebook page data using facebook's graph api?

I am trying to get the facebook page data using the following link: 我正在尝试使用以下链接获取Facebook页面数据:

https://graph.facebook.com/page/bachicheckkar

And it returns the following: 它返回以下内容:

{
 "error": {
      "message": "Unknown path components: /bachicheckkar",
      "type": "OAuthException",
      "code": 2500
   }
}

What am I doing wrong here? 我在这里做错了什么? Why doesn't it fetch the page data? 为什么不获取页面数据? I'm sorry but I'm a newbie here. 抱歉,我是这里的新手。

You are trying to access data in a wrong way! 您试图以错误的方式访问数据! I'll suggest you to go through the Graph API Page Reference since you're a Newbie. 由于您是新手,因此建议您阅读Graph API页面参考

The way it's done is you simply have to make a request using this simple link: 完成的方式是您只需要使用以下简单链接发出请求即可:

https://graph.facebook.com/bachicheckkar

However, in your case, it says the page doesn't exists! 但是,就您而言,该页面不存在! You can try it using your page's Id. 您可以使用页面的ID尝试一下。 It's working fine for other pages though. 不过,对于其他页面来说,它工作正常。 For example: 例如:

https://graph.facebook.com/seewaymore

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM