【问题标题】:Facebook Like Button doesn't incrementFacebook Like 按钮不会增加
【发布时间】:2012-10-31 13:32:02
【问题描述】:

我在个人网页上添加了一些点赞按钮:edoardo.torreggiani.net,但只有一个按钮可以正常工作。

这工作(主页):

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fedoardo.torreggiani.net&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px; height: 21px; " allowtransparency="true"></iframe>

这不起作用(主页上的单个帖子):

<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fedoardo.torreggiani.net%2Fhome%3Fpost%3D5&amp;send=false&amp;layout=button_count&amp;width=100&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21&amp;locale=en_US" scrolling="no" frameborder="0" style="border: none; overflow: hidden; width: 100px; height: 21px; " allowtransparency="true"></iframe>

当我点击不起作用的点赞按钮时,我会获得响应

for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","disconnect",[],["http:\/\/edoardo.torreggiani.net\/home?post=5"]]]}}

工作和错误的唯一区别是 iframe src 中的 HREF 参数:错误的在查询字符串中有一个参数。

【问题讨论】:

    标签: facebook-like increment


    【解决方案1】:

    据我所知,每篇博文都没有真正的页面。你的帖子链接是这个:

    http://edoardo.torreggiani.net/home?post=5
    

    把它放在调试器中,你会看到错误:

    https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fedoardo.torreggiani.net%2Fhome%3Fpost%3D5
    

    “website”类型的 URL“http://edoardo.torreggiani.net”上的对象无效,因为属性“fb:admins”的给定值“10150406244527145”无法解析为“fbid”类型。

    【讨论】:

    • 我怎样才能轻松解决我的问题?我的目标是让我的所有帖子都讨人喜欢。
    • 好吧,你必须确保“edoardo.torreggiani.net/home?post=5”链接到帖子,因为现在它没有。你可能想摆脱那个奇怪的加载器来解决这个问题......
    • 我已经修复了与 facebook 调试器相关的问题,现在我可以看到计数器增量,但它一次只能用于一篇帖子!为了让其他人喜欢我必须刷新页面(按 F5)..然后所有喜欢的按钮都可以正常工作..对此有什么建议吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 1970-01-01
    • 2013-04-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多