What code are you using?
Hiya, wonder if anyone can help.
I have a facebook like button on all of my sites, all coded the same way, but for some reason not all of them work. When pressing like it comes up with a red error and says page cannot be reached.
What i dont get is that it works on some some sites and not others, any ideas?
Ok,
Here's the code from one site that is working :
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/*****page address" width="260" show_faces="true" border_color="#f8f6f7" stream="false" header="true"></fb:like-box></div>
And here's the code from a site that isn't working...
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like-box href="http://www.facebook.com/*****page address" width="260" show_faces="true" border_color="#f8f6f7" stream="false" header="true"></fb:like-box></div>
Spot the difference! Plus both sites are based on the same template and have near identical code. Completely stumped me..
I think FB changed their policy so you have to include your app id for every request, like so:
http://connect.facebook.net/en_US/al...23907114302736
Also, check if you set the correct XML namespace in your HTML tag:
<html xmlns:fb="http://ogp.me/ns/fb#">
Some browsers don't like it if you leave that out.
Thirdly, load your sites with Firefox and Firebug open and see if any errors pop up in the console.
Thanks for the advice everyone, funnily enough though, i changed nothing and they all started working fine, so must have been a problem with facebook themselves.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks