Facebook: I get "Invalid Page ID" after doing a page merge of two pages that belong to a page structure. Not sure how to proceed - facebook

I have a Facebook page structure (parent page and 3 child pages) and we just merged two of the child pages and all seemed ok.
But when going to the "Store locations" page, I see the following message for each of the pages in the structure.
Invalid Page ID ******. Please update your API calls to use Page ID *****
Store_locations screenshot
I don't know what's going on or how to update the API calls.
I tried waiting a few days as I thought the merge was still in process. Also tried searching in Google and Stackoverflow but couldn't find anything related to this situation on a FB page structure.

Related

Is there any available Facebook widget for "Places"?

I am trying to embed a widget for a 3rd party Facebook "Place".
It seems that widgets only work for "Pages" or "Profiles", but not Places.
The place is being actively managed, it has posts from its owner (it's a hotel), so it's not one of those "automatically" created places.
All widget results for the place come up empty. If I try a Page or Profile, they work normally. So it's not code-related, it has something to do with the Facebook's categorization as "Place".
Are there any widgets that can be used for Facebook "places"? I'm more interested in the "page" widget: https://developers.facebook.com/docs/plugins/page-plugin
The place i'm referring to (not that it matters): link. Notice how there are recent active "page-like" posts.
Places are pages.
But the page in question is access-restricted somehow (age, location, ...), and the Page Plugin only works for fully public pages with no restrictions whatsoever.
https://developers.facebook.com/docs/plugins/page-plugin#privacy
Is there something I can check against in order to verify that the page is public?
You mean in an automated way? Well, if you have the page id or page username, you can use those to make an API request - using your app access token. For pages that are restricted in any way, that will return an "Unsupported GET Request" error message.

FB Graph API - How do I detect if a page was merged and get the ID of the right page?

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?
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}
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
}
}
You cannot. Once a page has been merged the Graph API will no longer provide data on that Page using the old Page ID.
I do not believe there is any indicator that the page has been merged a Graph API layer.

Making sense of multiple like buttons/boxes and Facebook pages

I have a slightly confusing setup on my site right now with:
A like button with the data-ref attribute set to the root domain of my site
A like box with date-ref set to a Facebook page I created for my site.
These obviously leads to different things, as the like button has 2.7k likes while the like box/Facebook page has around 600. This last number is also the number of likes I see on my regular Facebook page.
Now I also noticed that I have a second Facebook page saying it is the administration page for my webpage. The page has never been used to post anything, and it doesn't seem to be visible to anyone but me. This page has 700 likes.
I've been reading documentation on this stuff, but I'm not feeling confident about merging the pages or anything just yet, so I have a couple of questions I'm hoping someone with more Facebook experience than me can answer:
Where does this 700 number come from? It's not displayed on either my like button or my like box.
Is there any way for me to combine these three different counts into one?
The 700 is the count of people that liked the URL after you created the admin page which represents that URL - this is irrelevant now as that functionality is deprecated. ( see the link CBroe provided: developers.facebook.com/docs/reference/plugins/like/migration
It is not possible to migrate fans from one object or page to another, except as was allowed during the migration period outlined in that document, if you didn't migrate during that period you cannot move the fans of the site/domain to be fans of the Facebook page instead

Finding user interactions on Facebook page through Graph API

Given a Facebook user id and a Facebook page id, is there any way to get find all interaction that user has done on the page (posting comments, liking posts etc) without first downloading the entire feed?
I have access key for the page and if necessary I can get one for the user.
For example on the page 315390295169855 (Ninja Saga page) user ID 100002190613755 has written a comment on the post 315390295169855_401357983239752. I would like to search that page so that such interactions could be found.
Things I have tried
I tried
https://graph.facebook.com/315390295169855/feed?q=100002190613755&access_token=FOO
But that doesn't seem to do the trick.
I have also considered first downloading the entire feed and then searching through it. However it turns out to be impractical, as for example the Ninja Saga page has tens of thousands of interactions and would likely cause the user to start playing farmville instead of waiting for the megabytes-long pre-search download to complete.
You have the answer there - pull the list of comments from the Posts you retrieve on the /feed connection of the page - i think the default return from a call to /feed includes a small number of the recent comments on each Post too, and you can retrieve the rest with a call to /POST_ID/comments

Pulling in 'like' url data from open graph

Just developed an app that asks for user permission and is pulling in a list of external "liked" products from a website. So querying the open graph against the user id and identifying the URL of the product they have liked to create a list of products. This no longer seems to be working? the URL string doesn't seem to be an option. Does anyone know if Facebook have changed anything?
I assume you've solved your problem by now, but a similar issue has come up so I'll leave some info here for other desperate searchers.
The field you are looking for is probably "website".
https://graph.facebook.com/user_id/likes?fields=website
I was using the "link" field for this, but over the past couple days there was a bug released by FB where the link field was no longer present in the returned link data. The bug was fixed and the link field is back, however now if you are an admin or otherwise own the thing that was liked, the link field contains a URL to a FB Page for the liked object. If you don't own the object, the URL is the same as website. It's very confusing and now I'm scared to use the website value in order to identify what has been liked because it's meaning could change.