FB Graph API - How to determine if a page has been merged and get the right page identifier?

Pages can be combined using this procedure https://www.facebook.com/help/249601088403018 . After merging, one of the pages is redirected to the other.

The only way to detect this is by retrieving the page and see if Facebook really redirects? Or is there no way to use the Graph API to get this information?

+7
facebook facebook-graph-api
source share
3 answers

I know that this answer will probably come 1 year too late, but this question was asked and answered by the Base to Programmatically determine if the Facebook page was merged with another page , I tested its solution in the Graph API and it works . To quote his answer ,

There is a field called "best_page" that gives the best alternate identifier for the page you request.

He points

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

He extrapolates, saying:

if you request all users and want to find out the best page for each of them without reviewing each page separately, you can use it with the likes endpoint:

 /v2.1/me/likes?fields=id,name,best_page{id} 
+3
source share

I just want to add my two cents to this. Another behavior I came across is the chart API, which throws an error, noting that the page has been moved and a new identifier should link to it:

 { "error": { "message": "Page ID 763809000301020 was migrated to page ID 697230513732818. Please update your API calls to the new ID", "type": "OAuthException", "code": 21 } } 
+2
source share

You can not. After the page has been merged, the Graph API will no longer provide data on this page using the old page identifier.

I do not believe that there is any indicator that the page has been merged with the Graph API level.

+1
source share

All Articles