'日志未定义' fb共享中的错误

时间:2015-09-21 05:58:23

标签: javascript html facebook

我试图在Facebook上分享我的网站页面,因为我使用这个功能分享:

var publish = {
                  method: 'feed',
                  message: 'getting educated about Facebook Connect',
                  name: 'Connect',
                  caption: 'The Facebook Connect JavaScript SDK',
                  description: (
                      'A small JavaScript library that allows you to harness ' +
                      'the power of Facebook, bringing the user\'s identity, ' +
                      'social graph and distribution power to your site.'
                  ),
                  link: 'http://fbrell.com/',
                  picture: 'http://fbrell.com/f8.jpg',
                  actions: [
                    { name: 'fbrell', link: 'http://fbrell.com/' }
                  ],
                  user_message_prompt: 'Share your thoughts about RELL'
                };

FB.ui(publish, Log.info.bind('feed callback'));//This line shows the error

但是在运行代码时我得到了错误,因为没有定义Log。这段代码有什么问题????

0 个答案:

没有答案