I have a list of URLs of Facebook Pages that I'd like to collect basic metadata from (likes etc).
Most of the time, given a URL:
https://www.facebook.com/cocacola
I can simply fetch the corresponding graph URL:
https://graph.facebook.com/cocacola
Unfortunately, this breaks down for pages whose name has changed:
http://www.facebook.com/bebestores (redirects to https://www.facebook.com/bebe)
The resulting graph URL:
http://graph.facebook.com/bebestores
returns:
{
"error": {
"message": "(#803) Some of the aliases you requested do not exist: bebestores",
"type": "OAuthException",
"code": 803
}
}
Can I have the Facebook Graph API follow this redirect, or do I need to hit the public website to check whether my URL redirects?