Facebook Like button does not work on one website?

一世执手 提交于 2020-01-01 17:56:07

问题


I work with hundreds of websites and only 1 isn't working. All share the same code base. I am not sure what is going on. I think it is on Facebook's end but that can't be right can it? Both use the same code, both are hosted by the same server, both send the same request out. Individually they get different responses.

The website that isn't working is sending back this response.

for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","disconnect",[],["http:\/\/mklimages.com\/"]]]}}

The website that is working is sending back this response.

for (;;);{"__ar":1,"payload":null,"jsmods":{"require":[["Plugin","connect",[],["http:\/\/clweddingphotography.com\/","10150926803898226"]]]}}

It would appear that when the like button is clicked on the 'broken' website. The unlike response is being sent back. Both are sending the same POST requests.

Has anyone come across this before?

This is the url of the affected website: http://mklimages.com


回答1:


I am having exactly the same problem since the date of this post ! after seeing bugs on FB, it turned to be a bug they are trying to solve !




回答2:


This was happening to me as well. I clicked Like and the popup would show for a second but would disappear. The HTTP response showed "Plugin","disconnect".

This was happening when the URL on the Like button redirected to another URL.

What I did to fix it:

  1. I put the URL into the Facebook Debugger: https://developers.facebook.com/tools/debug
  2. You will see some OpenGraph warnings about missing properties. I just added a few key ones to my webpage: og:type, og:url, and og:title. Note that these three properties are marked as required on https://developers.facebook.com/docs/reference/opengraph/object-type/website
  3. Run the URL through the Facebook Debugger again, to clear Facebook's cache.

And Likes will work again.




回答3:


This sounds crazy but what ended up working for me was to go to: http://developers.facebook.com/docs/reference/plugins/like/

and put in your problem url in the box. You should see the same issue if you click the like button here.

Then start trying to change all the other values in the other text/dropdown(width, like/recommend...)

After each change try the demo like box. For me most did not work. What did finally work was when I changed the font to something else.

It started working on this developer site, then I tried my real URL and it worked there as well.

It sounds crazy but it worked for me. We were having this issue for over a week on this one site and nothing worked and this was just sort of a last desperate attempt.




回答4:


Same happened to me and after a few days it just started working by itself. I guess it has to do with the facebook spam policy or something...



来源:https://stackoverflow.com/questions/11325005/facebook-like-button-does-not-work-on-one-website

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