Trouble with Facebook open graph - facebook

I have a unique and different problem on my wordpress site with facebook open graph
The site's home page is perfectly understood by the facebook open graph debugger (link for reference).
But article page of the site, show error on the facebook's open graph debugger (link for reference).
Following error is observed when a article link of my site is posted to facebook object debugger:
Can't Download: Could not retrieve data from URL.
Graph API:
{
"error": {
"message": "An unknown error has occurred.",
"type": "OAuthException",
"code": 1
}
}
and the scraper is unable to load any data i.e. blank page.
Anyone who can, please help me with this matter, I have a strong suspicion that it is some plugin that messes things up on the articles and not on the home page.

SOLVED:
I had a problem with a wordpress plugin (SEO ALRP PLUGIN) that I was using at that time. Be very cautious while checking the options given to you by Open Graph Protocol Wordpress plugins.

I had this problem last week in Chrome and FF. It resolved itself on its own after ~24 hours. I'd say work on something else today and try it again tomorrow.
I think the FB engineers are tweaking the dev tools and occasionally breaking stuff along the way.
If you really need to work on it today, you could try the beta stack and see if that works better for you: https://developers.beta.facebook.com/

Related

Facebook link preview not showing for a phpBB3 forum post

I have this forum running on phpBB3 forum software. It is working fine by itself. But when I try to add a forum post link on facebook, it does not show preview of the page. When I tried this with facebook debugger (https://developers.facebook.com/tools/debug/), it shows me RNF error (HTTP 404) for my post because it does not append required parameters to the URL.
This is what I see on the facebook debugger page -
Scrape Information
Response Code 404
Fetched URL http://mysite.tld/forums/viewtopic.php?f=9&t=25
Canonical URL http://mysite.tld/forums/viewtopic.php?f=9&t=25
Final URL http://mysite.tld/forums/viewtopic.php
Is there a way to tell facebook to consider the query parameters of the URL as well?
I did try adding og:XXX tags in the header but it didn't help in any way and I continue to see 404 errors in facebook debugger.
I do not think adding tags is a problem because I tried this URL in facebook debugger and it could feth the title and all other details correctly for this URL.
https://www.phpbb.com/community/viewtopic.php?f=72&t=2120397
And I see that these forums do not have any face og:XXX tags here.
What might be causing problem for my forums and how can I fix it?
Any pointers, inputs would be highly appreciated!
TIA,
- Manish
I have already searched the questions here, and didn't find any pointer. I have already done my homework regarding facebook debugger and link preview, so not sure why it has been voted down.
I have figured it out. As it turned out - the bots didn't have the cookie set and hence were getting HTTP 404 response (a possible bug in custom style: fresco). Once I realized that this problem was due to cookies, I edited all the bots (ACP >> General >> Spiders/Robots) to use default phpBB style prosilver. Once that was fixed, facebook started showing link previews properly!

Facebook Like/Share (Mostly) not working on my Wordpress blog

Facebook LIKE/SHARE functions are generally not working on my wordpress blog. I cannot LIKE or SHARE any new posts, but oddly if I have already LIKED a page, the SHARE function works fine.
The problem with SHARE is that the normal sharing window pops up, but there is no metadata populated in it. I've looked at the metadata in my blog posts and as best I can tell it is populated correctly by Wordpress. Additionally, I cannot find any differences in the metadata or code between posts that I have previously LIKED and ones that I have have not.
I've tried running the FB debugger/linter for a number of posts on my site and each one returns the message:
Error Linting URL: An internal error occurred while linting the URL.
I've tried googling this error, but cannot find any useful advice on what might be causing it.
Here is a sample post for people to examine this problem:
http://erb.kingdomnow.org/michael-pollan-talks-about-his-new-book-cooked-video/
Thanks...
You should use Open Graph tags (see "Use proper Open Graph tags and large images to generate great previews" and "Using Self-Hosted Objects") in the header of your webpages to help Facebook determine what metadata needs to be shared.
Since you are using WordPress, you could either edit the template file in your theme that defines page headers (normally header.php) or use Facebook's official plugin.

facebook does not see my domain

I've been having issues recently with setting up links between Facebook and a website I've developed - www.newcarpromotions.co.uk. After some digging around, and advise on this forum, Ive used the following link to see what Facebook thinks of my domain:-
http://developers.facebook.com/tools/debug/og/object?q=newcarpromotions.co.uk
What it returns is as follows:-
"Error Parsing URL Error parsing input URL, no data was scraped"
Now Ive tried all my other domains which return all the correct information as you would expect.
Has anyone seen this before? It looks like Facebook doesn't think my domain exists! If that's the case any idea how I can get this resolved?
Nick
According to this post (Linter gives "Error parsing URL" error) it seems that the facebook object debugger can return that error if it fails to parse your page somehow. I'm suggesting that facebook can get to your website but is failing for a different reason. You may want to look at your request logs to verify that facebook is hitting your site.
If worse comes to worse you can open a bug here: http://bugs.developers.facebook.net/

Facebook Share button returning error

Example url:
http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan&src=sp
That's what's generated by the Share JS. If you visit the link (after decoding):
[...].com/2011/09/2124/rugby-world-cup-daily-tonga-beat-japan
You can view source and see open graph meta tags.
If the share url is changed to:
[...].com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan2&src=sp
(Adding a 2 to the end of the url) the result is fine. Likewise with other posts:
http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2119%2Frugby-world-cup-daily-christchurch-revisted&src=sp
So all I'm getting is "Error" with no way of knowing what went wrong.
Any insight would be great. A thought was that the url was flagged or banned by FB but no way to tell.
[...] is used cause I can't use more than 2 urls.
I re-linted your URL in the Facebook developer debug page:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.rugbydump.com%2F2011%2F09%2F2124%2Frugby-world-cup-daily-tonga-beat-japan%2F
and it appears to work fine now. Facebook caches the data obtained from a page, so it's likely they hit your page during a period in which it had an error message instead of the usual contents.

Facebook Comments Widget - Access via Graph "Unknown identifier"

My site is using the Facebook comments box plugin. I can access the comments using the graph api for my iOS app by calling:
https://graph.facebook.com/comments?ids={url}
However, if the url referenced above isn't visited at least once in a browser I'll get the error:
{
error: {
type: "Exception",
message: "Unknown identifier, ",
}
}
It makes sense that the url hasn't been registered yet via the plugin. However, I might be accessing these urls in my iOS app before anyone visits them on the web. Does anyone know of a graph api call that will register the url with Facebook? If my situation were read only I would simply say there are no comments but I have the same problem when trying to post a comment.
You can programmatically scrape a particular page containing a social plugin by making a CURL (or similar) call to:
http://developers.facebook.com/tools/debug?url={YOUR_URL}&format=json
This is mentioned in the OG docs at http://developers.facebook.com/docs/opengraph/#edit although links to the older URL for the OG Linter.
I believe linting/scraping a page such as this should register any social plugins on the page without requiring you to visit the page first.
Edit: See also the Updating Objects section at the bottom of this doc: https://developers.facebook.com/docs/opengraph/objects/