dongxianji0968 2013-12-31 05:00
浏览 24
已采纳

Facebook Like Button没有显示在我的帖子末尾[Sharebar]

There seems to be a problem with my Sharebar, but the problem can easily be fixed if someone could let me know what is wrong with the code.

I am trying to place a horizontal facebook like box at the end of my posts on my website. My Twitter and Google+ buttons are working fine, except for Facebook. I insert the php codes in my single.php file, and Facebook is the only one that is blank.

Here is the iframe code for the Facebook Like "Small Button":

<iframe src="http://www.facebook.com/plugins/like.php?href=[url]&layout=button_count&show_faces=false&width=85&action=like&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:85px; height:21px;" allowTransparency="true"></iframe>

The preview for the Facebook buttons found in the Sharebar plugin settings are also blank, compared to the others. Here is a screenshot for clarification: http://i.imgur.com/h7Bo0ni.png

And here is how it looks under a post on my website: http://i.imgur.com/H1weqQP.png The red circle is where the Facebook Like Button is supposed to be, but it is blank.

Thanks in advance for the help. It will greatly be appreciated!

  • 写回答

1条回答 默认 最新

  • duanbo6871 2013-12-31 05:30
    关注

    I think you should try deleting the Facebook button row and add it again.

    It has happened to me in the past and just deleting and adding it again has worked.

    Also, your iframe code seems fine, but if that doesn't work, consider the alternative below.

    By pasting this code alone should make your like button appear. It works for me.

    <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-show-faces="true" data-share="false"></div>
    

    Make sure you have the JDK loaded prior.

    Reference: https://developers.facebook.com/docs/plugins/like-button/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测