facebookfacebook-graph-apiiisfacebook-sharerhttp-status-code-302

Facebook sharer: Object moved/302 error


I get a ̀Object moved message when sharing URLs from my site on facebook. Facebook debugger tells me that he sees an http response 302 he can't follow:

URL requested a HTTP redirect, but it could not be followed.

But in the browser I get a 200 for the same URL.

When I try to rescrape, I get the following error:

Error parsing input URL, no data was cached, or no data was scraped.

This question has been asked quite a few times, but I've not come accross an answer. The website runs with sitecore/IIS and is available via HTTP only (no HTTPS, if that's relevant).


Solution

  • The problem was as obvious as described in the question: We had special code in our site that caused redirects for some clients (non-germans), so our browser got a 200 and Facebook a 302.

    For anyone stumbling upon this question and looking for help, the best answer I found after a long search (not top on google) was given to the following question:

    Facebook won't share a link to my site