Error with Facebook scrape

GK User
Wed May 22, 2013 11:01 am
I developed a J3 site with the Boutique template. http://www.hoodonit.nl

Now i have a very strange problem, whenever i try to pass a link with copy/paste to a new Facebook message, no image is shown.

So i tried the developer site from Facebook (https://developers.facebook.com/tools/debug/) and it turned out that when i entered any url from my site it returned a 403 error (Bad Response Code: URL returned a bad HTTP response code).

I have no idea where to look for the solution. Other sites we own dont have this problem and the only difference i see is that this site uses Joomla SEF and a standaard htaccess file.

Please ...any help is very welcome.
User avatar
Senior Boarder

teitbite
Wed May 22, 2013 11:11 am
Hi

Please check adding OpenGraph attributes to the site header. Directly to /layouts/blocks/head.php and check than. An example line of code will be:

Code: Select all
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" />
User avatar
Moderator

GK User
Wed May 22, 2013 12:50 pm
Thank you for the reply.

I added to the head.php file this ....

<meta property="og:title" content="HoodOnIt.nl"/>
<meta property="og:type" content="shop"/>
<meta property="og:url" content="http://www.hoodonit.nl"/>
<meta property="og:image" content="http://www.hoodonit.nl/images/logo_HoodOnIt.jpg"/>
<meta property="og:site_name" content="HoodOnIt"/>
<meta property="og:description"
content="HoodOnIt - webshop voor Hoodies, Jackets, Sweaters en T-shirts"/>

Then checked with the Facebook developer site and still got the same 403 error.

I think it is more related to the htaccess file, since on my other sites i also didnt add the above mentioned meta tags and it still works fine there.

Does anyone know how this might be caused by htaccess file? Since the 403 indicates something like it cant get access to the pages.
User avatar
Senior Boarder

teitbite
Wed May 22, 2013 10:35 pm
Hi

Sorry there is nothing special in htaccess we provide. It's basically the same file which comes with clean joomla installation. Please try change template to default one and try than, so we will be able to see if template is responsible for it.
User avatar
Moderator

GK User
Thu May 23, 2013 7:31 am
Thanks again ....it is indeed not the template as i found out now.

The errorlog shows lines like this .....

ModSecurity: Access denied with code 403 (phase 2). Match of "within %{tx.allowed_http_versions}" against "REQUEST_PROTOCOL" required. [file "/etc/httpd/modsecurity.d/base_rules/modsecurity_crs_30_http_policy.conf"] [line "78"] [id "960034"] [msg "HTTP protocol version is not allowed by policy"] [data "c=this.$menu.find( HTTP/1.1"] [severity "CRITICAL"] [tag "POLICY/PROTOCOL_NOT_ALLOWED"]

Unfortunatly for me i dont understand this.

Does someone know if this could be something my host provider could/should solve or adjust?
User avatar
Senior Boarder

teitbite
Fri May 24, 2013 9:58 am
Hi

Sorry it's Chinese to me too ;/ You need to show this to host provider. This looks like a server administrator stuff and I'm more of a programmer/developer.
User avatar
Moderator


cron