Facebook和QUOT;像"按钮错误 [英] Facebook "Like" button error

查看:149
本文介绍了Facebook和QUOT;像"按钮错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我增加了一个标准的Like按钮来我的网站。在code是

I added a standard Like button to my website. The code is

<div class="fb-like" data-href="mccabece.com"; data-send="true" data-width="450" data-show-faces="true"></div> 

在我点击喜欢按钮,它说我喜欢它,但后来给它旁边有一个红色的错误。错误说 - 该网页未能为管理员提供一个有效的列表。它需要指定使用一个管理员FB:APP_ID元标记,或使用FB:管理员元标记指定用逗号分隔的Facebook用户列表。 - 当我刷新网页,它不显示,我已经喜欢吧。有任何想法吗?

When I click the "Like" button it says I like it, but then gives a red "error" beside it. The error says - The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users. - When I refresh the website, it doesn't show that I've "Liked" it. Any ideas?

推荐答案

我不知道什么原因造成的确切的错误你提到的......但我发现了一些可能出现的问题:

I am not sure what caused that exact error you mentioned...but I found some possible issues:

首先,为什么你有一个;性格在里面吗?

First, why do you have a ; character in there?

其次,您所使用的网址是无效的(这是错误的最可能的原因):使用的http:// mccabece .COM 代替。

Secondly, the url you are using is not valid (this is most likely the cause of the error): use http://mccabece.com instead.

最后,我注意到你已经设置数据发送=真......这里是Facebook的API,说什么送 - 指定是否包括与Like按钮发送按钮这只与XFBML版本的作品。 确保你正确设置一切使用的。

And lastly, I notice you have set data-send="true"...here's what the facebook api says "send - specifies whether to include a Send button with the Like button. This only works with the XFBML version." Make sure you set everything correctly to use that.

编辑:

关于应用程序ID,看看这个链接 HTTPS://developers.facebook。 COM /文档/参考/插件/像/

About the app id, check out this link https://developers.facebook.com/docs/reference/plugins/like/

您可以看到code,他们给使用应用程序ID。

You can see the code they give uses the app id.

您可以在这里创建一个新的应用程序,从您的Facebook帐户: https://developers.facebook.com/apps ,并从那里使用id。

You can create a new app here, from your facebook account: https://developers.facebook.com/apps and use the id from there.

这篇关于Facebook和QUOT;像&QUOT;按钮错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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