问题描述
我在每个WordPress博客文章中都有一个Facebook按钮,这个工作很好,直到大约2个星期前,现在所有最近的博文都没有按钮的功能。
这是我点击相似按钮时得到的回复()
for(;;); { __ar:1,payload:{requires_login:false,success:false,already_connected:false,is_admin:false,show_error:false,error_info:null}}
和旧版博客帖子():
<$ (;); {__ ar:1,payload:{requires_login:false,error_info:null,show_error:false,node_type ExternalLink, NODE_ID: xxxxxxxxxxxxxxxxx, edge_type: ExternalLinkLike, connect_text:0, 成功:真实的, already_connected:真 user_profile :{ 名 : XXXXXXX PROFILE_URL: HTTP:\ / \ / www.facebook.com\ / XXXXXXX, pic_square: HTTP:\ / \ / profile文件.ak.fbcdn.net\ / hprofile-AK-snc4\ / xxxxxx_xxxxxxxxx_xxxxxxx_x.jpg }, story_fbid : xxxxxxxxxxxxxxxxx, is_admin:假 ADMIN_URL: }, invalidate_cache:[ 0]}
我已经尝试替换类似的框代码,从类似的框中删除href属性标签,通过Facebook URL Linter运行每个链接,没有任何工作!
我不明白为什么它适用于旧的博客文章,而不是新的,
看这里的论坛:
看起来好几个其他开发人员遇到同样的问题。有些帖子也带来了使用lint工具让他们的按钮工作。我也已经在我的网站上工作了,只需要粉碎Like按钮,直到它最终接受它,所以喜欢hpuiu说,我很自信,这个问题在他们的结束。
编辑:也许在相关的笔记中,另一个表示,他们似乎一直在为任何新的职位不到24小时这个问题。
I have a facebook like button on each of my wordpress blog posts, this worked fine up until about 2 weeks ago, and now all recent blog posts don't have functioning like buttons.
This is the response I get when I click the like button (post link)
for (;;);{"__ar":1,"payload":{"requires_login":false,"success":false,"already_connected":false,"is_admin":false,"show_error":false,"error_info":null}}
and for the old blog posts that DO work (post link):
for (;;);{"__ar":1,"payload":{"requires_login":false,"error_info":null,"show_error":false,"node_type":"ExternalLink","node_id":"xxxxxxxxxxxxxxxxx","edge_type":"ExternalLinkLike","connect_text":0,"success":true,"already_connected":true,"user_profile":{"name":"xxxxxxx","profile_url":"http:\/\/www.facebook.com\/xxxxxxx","pic_square":"http:\/\/profile.ak.fbcdn.net\/hprofile-ak-snc4\/xxxxxx_xxxxxxxxx_xxxxxxx_x.jpg"},"story_fbid":"xxxxxxxxxxxxxxxxx","is_admin":false,"admin_url":""},"invalidate_cache":[0]}
I've tried replacing the like box code, removing the href attribute from the like box tag, running each link through Facebook URL Linter and none of this has worked!
I don't understand why it works for old blog posts and not new ones, there are no differences between them (that I know of).
Looking at the forums here:http://forum.developers.facebook.net/viewforum.php?id=53
It looks like several other developers are running into the same issue. Some posts there also brought up having to use the lint tool to get their like buttons to work. I've also gotten it to work on my site by just mashing the Like button until it eventually accepts it so like what hpuiu said, i'm pretty confident that this problem's on their end.
Edit: And maybe on a related note, another post said that FB stopped scraping their site until they used the lint tool on their page and another said that they seem to consistently get this issue for any new posts that're around for less than 24 hours.
这篇关于Facebook的按钮不在最近的WordPress博客文章上工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!