Pages can be merged using this procedure https://www.facebook.com/help/249601088403018. After the merge one of the pages redirects to the other.
Is the only way to detect this by fetching the page and see if Facebook does a redirect? Or is there no way to use the Graph API to get this information?
The Graph API is the primary way to get data into and out of the Facebook platform. It's an HTTP-based API that apps can use to programmatically query data, post new stories, manage ads, upload photos, and perform a wide variety of other tasks.
API Version Deprecations: As part of Facebook's Graph API and Marketing API, please note the upcoming deprecations: August 3, 2021: Graph API v3. 3 will be deprecated and removed from the platform. August 25, 2021 Marketing API v9.
Just wanna add my two cents to this. Another behavior I've come across is the graph API throwing an error, mentioning that the page has been migrated and should be referenced by a new ID:
{
"error": {
"message": "Page ID 763809000301020 was migrated to page ID 697230513732818. Please update your API calls to the new ID",
"type": "OAuthException",
"code": 21
}
}
I know this answer is probably coming 1 year too late, but this question was asked and answered by Baz at Programmatically detect if a Facebook page was merged with another page. I've tested his solution on the Graph API Explorer and it works. To quote his answer,
There is a field called "best_page" that gives the best alternate id of the page you are querying.
He specifies
If the page you are querying is already the best page, you will not receive any "best_page" property in the response
He extrapolates by saying,
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}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With