FB发送按钮不显示在页面上

时间:2011-09-05 22:07:28

标签: facebook

<div id="Zoom" style="background-color: blue; top: 1077px; left: 378px;
     position: absolute; display: block;">
    Send 
    <div id="fb-root"></div>
    <fb:send colorscheme="dark" font="" href="http://tinyurl.com/3e7ggl6">
    </fb:send>
    <br> 
    <textarea rows="7" cols="40">bla bla</textarea>
</div>

为什么Facebook发送按钮不可见?或者仅当页面在Facebook画布内运行时才可见?

1 个答案:

答案 0 :(得分:0)

您无需在Facebook Canvas中运行。

您需要在页面上安装FB JS SDK。我假设你没有。请参阅https://developers.facebook.com/docs/reference/javascript/https://developers.facebook.com/docs/reference/plugins/like/

或者,只需复制一遍:

<div id="fb-root"></div>
<div id="Zoom" style="background-color: blue; top: 1077px; left: 378px; position: absolute; display: block;">
    Send 
    <fb:send colorscheme="dark" font="" href="http://tinyurl.com/3e7ggl6">
    </fb:send>
    <br> 
    <textarea rows="7" cols="40">bla bla</textarea>
</div>
</div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({
    appId  : 'YOUR APP ID',
    status : false, // don't check login status if you don't need it
    cookie : don't, // don't enable cookies to allow the server to access the session unless you need it
    xfbml  : true, // parse XFBML
    channelUrl : 'http://WWW.MYDOMAIN.COM/channel.html', // channel.html file, see the JS docs
    oauth  : true // enable OAuth 2.0 // It's the future, man
  });
</script>

应该这样做