我正在使用 Facebook 发送对话框发送 Facebook 帖子的链接。但我从 Facebook API 得到以下错误:
API Error Code: 100 API Error Description: Invalid parameter Error Message: 'link' is invalid.
这是 JavaScript:
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
// assume we are already logged in
FB.init({appId: '569858063028330'});
FB.ui({
method: 'send',
link: 'https://www.facebook.com/benjerryuk/posts/10151500944440101'
});
</script>
你可以在这里运行它:http: //jsbin.com/welcome/62834/edit
Facebook 发送对话文档:https ://developers.facebook.com/docs/reference/dialogs/send/