我使用Facebook的JavaScript SDK發佈在Facebook上的評論,並使用此代碼:刪除Facebook的評論
FB.init({
//appId: 'YOUR_APP_ID', cookie: true,
appId: '2697XXXXXXXXXX098', cookie: true,
status: true, xfbml: true
});
FB.ui({
method: 'feed',
name: 'MyComment',
link: 'http://www.facebook.com./',
picture: 'http://xyz.com/App_Shared/Images/logo.jpg',
caption: 'Comment caption',
description: 'comment description',
message: 'Join facebook.'
}, function (response) {
if (response && response.post_id) {
alert('Post was published.' + response.post_id);
} else {
alert('Post was not published.');
}
});
,現在我想使用相同類型的刪除這篇文章js代碼。 我在我的數據庫中保存了post_id。
你能爲我提供的代碼或任何URL要做到這一點.....
我用這個,但它給我錯誤:{「error」:{「type」:「OAuthException」,「message」:「(#200)用戶尚未授權應用程序執行此操作」} } –
@Gaurav這需要publish_stream擴展權限 – bkaid