Facebook can't extract weblog info...

Facebook can't extract weblog info...

Postby koji on Thu Sep 09, 2010 7:08 am

I'm having a strange behaviour, and I can't imagine what could be happening, I hope you can help me...

When I try to publish one weblog entry in facebook, it can't get the blog title, the description or the photo, as usually happens when you publish something.
Instead of this, it appears only the entry URL without info.

I followed the access in the logs, and when the acces comes from the facebook robot who performs this work, apache returns a 400 error, and when I try it from my browser, a 200 code is returned, for te same url!!!

My browser
xxx.xxx.xxx.xxx - - [09/Sep/2010:12:18:18 +0200] "GET /blog/pessics-daqui-i-dalli/category/748/scrap/2010/09/05/val-regal HTTP/1.1" 200 21803 "http://blocs.tinet.cat/blog/pessics-daqui-i-dalli" "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4"

Facebook
66.220.156.250 - - [09/Sep/2010:12:18:33 +0200] "GET /blog/pessics-daqui-i-dalli/category/748/scrap/2010/09/05/val-regal HTTP/1.1" 400 940 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"

I upgraded apache, php, deactivated cache, gzip, tried to change te User-agent with BrowserMatch, but it does'nt works...

My question is, there's some place in lifetype where the code checks for the user agent and could return an error??

I've seen in the code browser checks in bad-behavior and a class called phpSniff, but I don't know if it could be related...

Thanks in advance
koji
 
Posts: 130
Joined: Wed Jul 06, 2005 10:20 am
Location: Tarragona - Catalonia

Re: Facebook can't extract weblog info...

Postby koji on Thu Sep 09, 2010 8:19 am

I tried to add the facebook user agent as a exception in the bad-behavior whitelist, and now it works again.

I edited
/plugins/badbehavior/bad-behavior/whitelist.inc.php
koji
 
Posts: 130
Joined: Wed Jul 06, 2005 10:20 am
Location: Tarragona - Catalonia

Re: Facebook can't extract weblog info...

Postby jondaley on Thu Sep 09, 2010 3:32 pm

Interesting. I've never had that problem. I wonder why it would be different.
jondaley
Lifetype Expert
 
Posts: 6169
Joined: Thu May 20, 2004 6:19 pm
Location: Pittsburgh, PA, USA
LifeType Version: 1.2.11 devel branch


Return to Other Problems

cron