facebook - FB Graph API - 如何检测页面是否已合并并获取正确页面的 ID?

标签 facebook facebook-graph-api

可以使用此过程合并页面 https://www.facebook.com/help/249601088403018 .合并后,其中一个页面重定向到另一个页面。

是通过获取页​​面并查看 Facebook 是否进行重定向来检测此问题的唯一方法吗?或者没有办法使用 Graph API 来获取这些信息?

最佳答案

我知道这个答案可能晚了 1 年,但 Baz 在 Programmatically detect if a Facebook page was merged with another page 提出了这个问题并回答了 .我已经在 Graph API Explorer 上测试了他的解决方案并且它有效。引用his answer ,

There is a field called "best_page" that gives the best alternate id of the page you are querying.

他指定

If the page you are querying is already the best page, you will not receive any "best_page" property in the response

他推断说,

if you are querying all of a user's likes, and would like to know the best page of each without having to re-query each page individually, you can use it with the likes endpoint:

/v2.1/me/likes?fields=id,name,best_page{id} 

关于facebook - FB Graph API - 如何检测页面是否已合并并获取正确页面的 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22227333/

相关文章:

javascript - Firebase身份验证中的用户ID在所有身份验证提供程序(Google,Facebook,Github)中如何相同?

ios - 登录后图形请求返回nil

javascript - facebook javascript SDK : FB. Canvas.setAutoResize iFrame 不工作?

php - Facebook Graph API 过滤搜索结果

javascript - iOS 上的 Facebook 浏览器 : problems with localStorage

asp.net-mvc - 弃用版本 Facebook Graph API v2.2

c# - 发布到 Facebook 群组墙并标记成员 - Graph API - C#

facebook - 如何配置 Facebook webhooks?

facebook - 无法通过 Facebook Instant Article API 的 DELETE 方法删除文章

javascript - Facebook 应用程序 - Javascript 设置 Canvas 高度?