使用 Facebook Graph API 获取列表页面签到

发布于 2024-11-27 03:55:33 字数 730 浏览 5 评论 0原文

当我查看我拥有的页面的页面对象时 ( https://graph.facebook.com/[PAGE_ID ]?access_token=[ACCESS_TOKEN] ),它显示:

{
   ...
   "checkins":4
   ...
}

直接查看 facebook 页面也显示 4 次签到。

但是,当我尝试使用图形 api ( https://graph.facebook.com/[PAGE_ID]/?fields=checkins&access_token=[ACCESS_TOKEN] ),它显示以下内容:

{
   "checkins": {
      "data": [

      ]
   }
}

我也尝试使用页面访问令牌,但这也不起作用。

我已启用 user_checkins、friends_checkins 和publish_checkins 权限。

当我将 ?fields=checkins 更改为 ?fields=likes 时,我遇到了同样的问题。

有人可以解释一下这一点,或者告诉我如何获取特定页面的签到列表吗?

When I view the page object for a page I own ( https://graph.facebook.com/[PAGE_ID]?access_token=[ACCESS_TOKEN] ), it shows:

{
   ...
   "checkins":4
   ...
}

Directly viewing the page on facebook shows 4 checkins as well.

However, when I try and view the checkins field using the graph api ( https://graph.facebook.com/[PAGE_ID]/?fields=checkins&access_token=[ACCESS_TOKEN] ), it shows the following:

{
   "checkins": {
      "data": [

      ]
   }
}

I also tried using the page access token, but that didn't work either.

I have enabled the user_checkins, friends_checkins, and publish_checkins permissions.

I experience the same problem when I change ?fields=checkins to ?fields=likes.

Can anybody shed some light on this, or tell me how to get a list checkins for a particular page?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾挽 2024-12-04 03:55:33

尝试像这样访问页面的签到:

https://graph.facebook.com/[PAGE_ID]/checkins?access_token=[ACCESS_TOKEN]

以及喜欢:

https://graph.facebook.com/[PAGE_ID]/likes?access_token=[ACCESS_TOKEN]

Try accessing the Page's checkins like so:

https://graph.facebook.com/[PAGE_ID]/checkins?access_token=[ACCESS_TOKEN]

as well as likes:

https://graph.facebook.com/[PAGE_ID]/likes?access_token=[ACCESS_TOKEN]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文