为什么这个Facebook插件不起作用?

时间:2014-04-20 20:31:15

标签: html5 facebook-javascript-sdk

JSFIDDLE:http://jsfiddle.net/t9h6W/

<body style="margin:0 0 0 0;background-color: #f4f4f4;">
<div>
The JSFiddle has all the code.
</div>
</body

一切似乎都很好,我不明白为什么Facebook社交插件不起作用?更多 - 那么,我如何重新定位我在页面上出现的登录表单中的社交插件?不知道为什么它不起作用:/

1 个答案:

答案 0 :(得分:1)

它说,

Invalid App Id: Must be a number or numeric string representing the application id.

打开浏览器控制台,您将看到Javascript错误。

要重新定位FB登录按钮,您可以将代码放在div中并控制div来定位框。

即,将fb嵌入代码放在这样的div中,

<div class="fb-login"> 
    <fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
</div>

现在您可以将样式应用于&#39; fb-login&#39;用于定位fb按钮的类。

相关问题