开发者

Why did facebook connect stop working for me? (like buttons)

开发者 https://www.devze.com 2023-02-18 10:24 出处:网络
I have configured my website so that it has the facebook like button on each blog post. I don\'t remember making any changes breaking this, but it\'s suddenly not working for me. The button just does

I have configured my website so that it has the facebook like button on each blog post. I don't remember making any changes breaking this, but it's suddenly not working for me. The button just does not appear.

The full page is at http://lastyearswishes.com/blog/view/4d80169e4aa5d8050d716c94 (it should appear righ开发者_如何转开发t under "posted: ..")

The relevant code however is this:

<head>
    ...
    <script src="http://connect.facebook.net/en_US/all.js#xfbml=1">
    </script >
</head>

...

<fb:like href="http://lastyearswishes.com/blog/view/4d80169e4aa5d8050d716c94" layout="button_count" show_faces="false" width="450" font="lucida grande"></fb:like>

I am not seeing any kind of error messages either.


There's an active thread about this problem on the Facebook Platform Developer Forum. One poster suggested adding this line of code before the like button code:

<div id="fb-root"></div>

This works for me, but other folks are still having problems with disappearing like buttons.


Couple things to check:

  • Are you currently logged into the browser that you are accessing (this shouldn't make or break it though)?
  • Javascript turned on (check your developer toolbar if using Firefox)?
  • Cookies turned on?
  • Not blocking cookies for a anything facebook related

Try another browser (Chrome, Firefox, Safari and dare I say, IE).

Oh, works fine for me too!

0

精彩评论

暂无评论...
验证码 换一张
取 消