Facebook object debugger getting 500 response code but only on some pages? - facebook

I am trying to get facebook open graph action to work, however, the object debugger tells me it is getting response code 500 from the pages I want to use. When I try to paste the URL into Facebook to share, sometimes it says runtime error and sometimes it works, sometimes it just gets part of the image.
For example: http://www.literrater.com/book/10
This fails the debugger entirely with a 500 code
https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.literrater.com%2Fbook%2F10
That same URL works when posting a status, sometimes.
Any suggestions about what I can do to fix this or at least diagnose the problem?
Edit: The site is hosted on windows azure as an asp.net web site. The blog at http://literrater.com/blog is php and the OG debugger seems to like it just fine.

I'm was having this same problem, and I'm using partial views on the pages in question, but I'm not convinced it's a Mobile only view that is your problem. Try the Open Graph debugger here: https://developers.facebook.com/tools/debug/ to see if that helps you diagnose your problem. Are you using the og properties? My page worked after I added the meta property="og:type" content="article" to the header. My homepage worked by setting the og:type to website, but that wouldn't work for other pages on my site. I hope this helps you.

A partial view being called in a MOBILE only razor view was being accessed and throwing an error. So while it worked in a desktop browser it was likely crashing on mobile.

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!

Critical Error Linting URL: An internal error occurred while linting the URL

I tried to create a post (using a blogger URL) in the Facebook Power Editor.
Result:
Error creating posts. Please retry later. You can also go to your Page and post from there. (OAuthException) (#1500) The url you supplied is invalid
Then tried to install Facebook's Open Graph tags into Blogger to see of that would fix the problem.
To test the OG tags I used Open Graph Object Debugger.
Here are the results:
Critical Errors That Must Be Fixed, Error Linting URL, An internal error occurred while linting the URL.
How do I fix the invalid URL and the Critical: Error Linting URL?
I am not tech savy so this issue is way over my head but I would like to get it fixed. Please help.
Thanks
I had a problem like this with the og:image pointing to an image hosted on Rackspace. The URL was something crazy like
http://1234567890abcdef1234-1234567890abcdef123456780123412b.r23.cf5.rackcdn.com
I think the Facebook linter was seeing this as spam, because if I actually embedded the image in my app/assets it worked fine, so it wasn't the image that was the problem.
The solution was to set up a CNAME on my hosting provider that pointed to the hideously long Rackspace URL, e.g.
CNAME Value
images http://1234567890abcdef1234-1234567890abcdef123456780123412b.r23.cf5.rackcdn.com
Then I changed the og:image meta tag to be
meta property="og:image" content="http://images.mydomain.com/relative_rackspace_imagepath.jpg"
I wanted to contribute a little data point here as this is currently the top google result for this error and there is little useful info out there.
In my case, the page was a post on a wordpress blog that happened to begin with a twitter post embed, and the twitter post happened to contain an url. My og tag plugin grabbed the embed and managed to place the url along with a little other cruft in og:description, and once I cleaned that up manually the error disappeared.
I think the lesson is that when this happens take a look at your og tags for the page for ANYTHING unusual. That's the place to start.
Happened to me once my og:image pointed to this url:
http://xxxxxxx.appspot.com.storage.googleapis.com/IsraelFlag.jpg
I just changed it to:
http://storage.googleapis.com/xxxxxxx.appspot.com/IsraelFlag.jpg
and it works
probably very poor software parses the html
I spent hours trying to debug why this was happening for our site. It turns out it was because of the og:locale:alternate meta tags we had.
<meta property="og:locale:alternate" content="cs_CZ" />
<meta property="og:locale:alternate" content="de_DE" />
...
When Facebook sees this in your tags they subsequently hit your og:url with '?fb_locale=[lang]' where [lang] is each of your alternates. There is one request per alternate. In our case, we had code that was returning back a 302 on that request. As a result, the Facebook Open Graph Object Debugger kept saying "Error parsing input URL"
Once I fixed the responses to the alternate requests to actually return internationalized content, the issue was fixed.

Unable to scrape website: URL returned a bad HTTP response code

I noticed that this has been asked before, but no one else has yet to receive an answer, so I'll try my best to ask too.
In the last several months, my Wordpress website, http://geekvision.tv/ , has been undetectable by Facebook's debugger. I managed to get my homepage to work once or twice, but ALL of my posts are completely unregistered with the debugger, coming back saying that the og:url is not explicitely provided. For a link to a post on the site, you can find it here: http://geekvision.tv/2013/03/a-message-to-video-game-pirates/
The Facebook debugger returns the following error for your homepage:
The object at 'http://geekvision.tv' previously had type 'article' and
cannot be changed to an object of type 'website' to avoid data
corruption of existing actions.
Try changing the og type back to <meta property="og:type" content="article">
For your other article, your webserver is returning a 404 error (despite then sending the full article). You should fix this response header before getting Facebook to scrape your other pages.
HTTP/1.1·404·Not·Found
Date:·Thu,·09·May·2013·07:54:07·GMT
Server:·Apache
X-Pingback:·http://geekvision.tv/xmlrpc.php
Link:·<http://wp.me/p2eHBP-1Zz>;·rel=shortlink
Connection:·close
Transfer-Encoding:·chunked
Content-Type:·text/html;·charset=UTF-8
X-Pad:·avoid·browser·bug
I find that if I use Chrome instead of Safari Facebook is able to scrape the images and does well. It's a simple answer to a problem I have been having for the last 4 months. Hope this helps.

The facebook debugger is giving 500 error

The facebook debugger is giving 500 error for your webpage. It is unable to get my og metatags values. However, og metatags are present in the web page:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fstaging.eco.ca%2Fcommunity%2Fblog%2F5-fascinating-green-jobs-youve-never-heard-of%2F68170%2F
Take a look at your IIS configuration. Something in there is refusing connections from anything that isn't a web browser.
Your page returns a 500 error for the W3C validator also.
For me it was because when Facebook, Google or other robots access the page, they don't send a language like a browser does, and in the code we were using the browser language to determine the content language.
I want to share my experience about this facebook debugger 500 error. I was getting this error without any explanation on facebook debugger. I checked my server side and domain records, tried what I found on internet with no luck. It took me long time to discover the problem.
Problem was I was sharing url within a restricted area in my website while sharing for first time. Let me explain, I have a test page in my cms, before I publish anything, I test if everything's ok. I realised whenever I test a content, facebook tries to crawl site, but it's in a restricted area. So I moved anything about facebook from my test page.

FB og:image getting recognized but not showing up FB:like

Currently I am implementing a fb like with image og:image with it. If you go to the link of the debug you will find out that the picture works. I can get the picture recognized but it's not showing up on the debug or when liking it. Do you have any suggestions? The website is https://www.mansettispizza-hamlake.com for the open-graph meta data. I know the site doesn't valid for the w3c but that shouldn't be causing any issues. I tried switching it to jpg as well and using link rel="image_src" as well.
http://developers.facebook.com/tools/debug/og/object?q=https%3A%2F%2Fwww.mansettispizza-hamlake.com
https://www.mansettispizza-hamlake.com/wp-content/themes/wisewordsfromwoo/images/Mansettis.png
I tried to switch it to
https://www.mansettispizza-hamlake.com/wp-content/uploads/2011/07/house-special-pizza-mansettis-pizza-best-pizza-blaine-pizza-chanticlear-broadway-150x150.jpg
Remove SSL and it will work! I had the same problem and just resolved it by throwing away SSL.