我有以下来自 facebook 的 js,它只是根据方法设置加载提要或发送对话框。
它在页面加载时加载它。它可以在点击时加载吗?意思是用户想要它而不是页面加载时?
示例js
<script src="http://connect.facebook.net/en_US/all.js"></script>
<div id="fb-root"></div>
<script>
// assume we are already logged in
FB.init({appId: '123456', xfbml: true, cookie: true});
FB.ui({
method: 'feed',
name: 'People Argue Just to Win',
link: 'http://www.nytimes.com/2011/06/15/arts/people-argue-just-to-win-scholars-assert.html',
});
</script>