Results 1 to 5 of 5

 

Thread: Problems with facebook like button

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    41
    Thanks
    4
    Thanked 1 Time in 1 Post


    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?

  2. #2
    Mogga's Avatar
    Chocaholic

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Oldham
    Posts
    8,452
    Thanks
    519
    Thanked 228 Times in 176 Posts
    What code are you using?
    --
    Gifts -/ wine,vouchers/Chocolate -/Garden
    Got a bingo site? Want a link. Get in touch.

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    41
    Thanks
    4
    Thanked 1 Time in 1 Post
    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..

  4. #4
    showspace's Avatar
    Registered User

    Status
    Offline
    Join Date
    Sep 2011
    Posts
    38
    Thanks
    10
    Thanked 1 Time in 1 Post
    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.

  5. #5
    Registered User

    Status
    Offline
    Join Date
    Mar 2009
    Posts
    41
    Thanks
    4
    Thanked 1 Time in 1 Post
    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.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2