点赞按钮(确认)

5

我有Facebook的赞按钮,但是它在我的时间线上没有显示。当我在我的网站上点击此按钮时,它将变为“确认”。一旦我点击了它,会弹出一个小窗口来让我点赞该产品。在那个小窗口的链接中,会显示类似于这样的内容。

http://www.facebook.com/plugins/error/confirm/like?iframe_referer=http%3A%2F%2F3beacheschemist.doublet.com.au%2Fproductdetail.aspx%3Fname%3DSWISSE-HAND-CREAM-WITH-VIT-F---POMEGRANATE-100ML&secure=false&plugin=like&return_params=%7B%22api_key%22%3A%22171681722971300%22%2C%22locale%22%3A%22en_US%22%2C%22sdk%22%3A%22joey%22%2C%22channel_url%22%3A%22http%3A%2F%2Fstatic.ak.facebook.com%2Fconnect%2Fxd_arbiter.php%3Fversion%3D17%23cb%3Dffcb50044%26origin%3Dhttp%253A%252F%252F3beacheschemist.doublet.com.au%252Ff39b47030%26domain%3D3beacheschemist.doublet.com.au%26relation%3Dparent.parent%22%2C%22href%22%3A%22http%3A%2F%2F3beacheschemist.doublet.com.au%2Fproductdetail.aspx%3Fname%3DSWISSE-HAND-CREAM-WITH-VIT-F---POMEGRANATE-100ML%22%2C%22node_type%22%3A%22link%22%2C%22width%22%3A%22450%22%2C%22layout%22%3A%22standard%22%2C%22colorscheme%22%3A%22light%22%2C%22action%22%3A%22recommend%22%2C%22show_faces%22%3A%22false%22%2C%22send%22%3A%22true%22%2C%22extended_social_context%22%3A%22false%22%2C%22ret%22%3A%22sentry%22%2C%22act%22%3A%22connect%22%7D

之前,它一直在工作。突然间,我需要更改一些东西,但我不知道是什么。


请参见https://dev59.com/3Gox5IYBdhLWcg3wnllI - rogerdpack
1个回答

0

首先,始终使用“赞”按钮生成器:

https://developers.facebook.com/docs/reference/plugins/like/

其次,在许多情况下,使用应用程序ID与“喜欢”按钮一起使用会有所帮助。通常,如果您在Facebook集成中使用应用程序ID,则垃圾邮件确认不会经常出现。

示例(填写appId):

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/de_DE/all.js#xfbml=1&appId=xxxxxxx";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

如果那不起作用,你只能等待,或者尝试在Facebook调试器中刷新链接。

https://developers.facebook.com/tools/debug


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接