Facebook Like Button doesn't increment

可紊 提交于 2019-12-24 03:43:17

问题


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

THIS WORKS (homepage):

<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"]]]}}

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.


回答1:


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

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



来源:https://stackoverflow.com/questions/13159174/facebook-like-button-doesnt-increment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!