我可以在自己的牆上寫字,但不能寫在我是管理員的頁面牆上。我正在使用下面的代碼(Javascript SDK):是否可以發佈到您使用Facebook Javascript SDK的管理員的頁面?
FB.ui(
{
method: 'stream.publish',
message: 'getting educated about Facebook Connect',
attachment: {
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.'
),
href: 'http://github.com/facebook/connect-js'
},
action_links: [
{ text: 'Code', href: 'http://github.com/facebook/connect-js' }
],
user_message_prompt: 'Share your thoughts about Connect',
target_id: '170500829645508',
uid: '100001920038281'
},
function(response) {
if (response && response.post_id) {
alert('Post was published.');
} else {
alert('Post was not published.');
}
}
);
}
其中目標ID是頁面我管理員和uid是我的帳戶用戶ID。當我運行此代碼,我不斷收到錯誤消息:指定
無效目標: 170500829645508.目標必須是一個網頁,事件,或用戶的演員 可以張貼上牆。
我在這裏做錯了什麼?
好吧,我想我有我需要的令牌。現在我該怎麼處理它? – 2010-11-16 16:22:01