Facebook Like Button不会增加 [英] Facebook Like Button doesn't increment

查看:60
本文介绍了Facebook Like Button不会增加的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在个人网页上添加了一些类似的按钮: edoardo.torreggiani.net ,但只有一个按钮效果很好.

I've added some like buttons on my personal web page: edoardo.torreggiani.net but only one button works fine.

此工作(主页):

<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>

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

THIS DOESN'T WORK (single post in homepage):

<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>

当我点击不起作用的赞"按钮时,我得到了响应:

When I click on the like button that doesn't work I obtain that response :

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

有效的参数和错误的参数之间的唯一区别是 iframe src 中的 HREF参数:错误的参数在查询字符串中具有一个参数.

The only difference between the working one and the wrong one is the HREF param in iframe src: the wrong one has one parameter in query string.

推荐答案

据我所知,每个博客文章都没有真实的页面.您的帖子链接就是这个:

As far as i can see, there is no real page for every blogpost. Your post link is this one:

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

将其放在调试器中,您将看到错误:

Put that in the debugger and you will see errors:

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

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

Object at URL 'http://edoardo.torreggiani.net' of type 'website' is invalid because the given value '10150406244527145' for property 'fb:admins' could not be parsed as type 'fbid'.

这篇关于Facebook Like Button不会增加的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆