Error when sharing wordpress blogposts to Facebook
-
Until yesterday my blogposts worked fine when sharing them to Facebook. Facebook took the picture, headline and a piece of the text automatically. But now it’s not working, it’s like it can’t find the specific blogpost but only the main page of the website. Why is this?
I tried Facebook sharing debuger, and it says:
1. Bad Response Code
URL returned a bad HTTP response code.
2. Inferred Property
The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
3. Missing Properties
The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_idWhen asking Facebook sharing debugger:
“See exactly what our scraper sees for your URL”The answer is:
<!DOCTYPE html PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN” “http://www.w3.org/TR/REC-html40/loose.dtd”>
<html>
<head><meta http-equiv=”content-type” content=”text/html; charset=utf-8″></head>
<body><p>Blocked</p></body>
</html>I googled the errors and found:
Facebook Debugger – Bad Response Code: URL returned a bad HTTP response code : 404
So I tried emptying out the WordPress htaccess page. Nothing is left but:
# BEGIN WordPress
# Direktiven (raderna) mellanBEGIN WordPressochEND WordPressgenereras dynmiskt och bör endast ändras via WordPress-filter. Eventuella ändringar till direktiven mellan dessa markörer kommer att skrivas över.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressAnd the site is working well. But the problem with Facebook not finding the pages is still here to stay. So I found more chatter online about people with similar problems appearing after installing or removing plugins, so I deleted all plugins (except Htaccess Editor – Safely Edit Htaccess File), but the problem is still not solved.
Help me please. What can I do to get my WordPress blogposts back to normal on Facebook?
-
Hi there, could you send a link to the site you’re having trouble with? It sounds like the one you’re describing is either on a Business Plan, which would get you chat based support if you’re logged into the correct account.
Or it could actually be a WordPress.org installation hosted somewhere else. If it is hosted somewhere else, you’ll need to use the forums for self-managed WordPress installations instead:
Hoping this helps!
- The topic ‘Error when sharing wordpress blogposts to Facebook’ is closed to new replies.