可以使用此过程合并页面 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/