I’ve been working on a small project with Facebook like buttons and I’ve run into a small problem.
Suppose I have a web page and I do the following:
- Put a ‘like’ button on that page (as described in the documentation)
- …Without including the OpenGraph meta tags
- I ‘like’ the page
- I examine the associated OpenGraph object (via http://graph.facebook.com/?id=SITE_NAME).
In this case, I get something like this:
{
"id": "http://my-page/path",
"shares": 1
}
However, if I later add the OpenGraph tags, I still get the same result, even though it should look like an actual OpenGraph object. E.g.
{
"id": "100559863426647",
"name": "Page",
"picture": "http://path-to-image.jpg",
"link": "http://my-url/path",
"likes": 1,
"app_id": 392482400810748,
"category": "Product/service",
"is_published": true,
"description": "Some Description",
"about": " Llama #2"
}
What way is there to take an existing ‘liked’ URL and convert/correct it into an OpenGraph object, if any?
Facebook needs to rescrape your page before it will get the updated metadata. That may be the issue.
To get Facebook to rescrape the page, you’ll either need to visit the page with Facebook’s Linter or ‘Like’ the page as the page admin.
More details are available in the “Editing Meta Tags” section of
https://developers.facebook.com/docs/opengraphprotocol/