通过尝试将消息发布到用户的Facebook墙上,我只收到有关用户的最新信息,例如朋友和喜欢。
我正在使用Flash CS 6和AS3:
var dorequest:URLRequest = new URLRequest("https://graph.facebook.com/[user-id]/feed?message=helloworld&access_token=[token])
dorequest.method = URLRequestMethod.POST;
loader.load(dorequest);
我是Graph API的新手 - 我在这里想念什么? 感谢。
答案 0 :(得分:0)
Adobe有一个AS3 Facebook API:
https://code.google.com/p/facebook-actionscript-api/
您需要先处理登录,但以下是发布到墙上的方式:
var params:Object = {
message: text,
link: 'your link here',
caption: 'Text to display 1',
name: 'Text to display 2',
description: 'Description',
picture: 'image url here'
};
Facebook.api( 'me/feed', onComplete, params, "POST" );
function onComplete( response:Object, fail:Object ):void
{
trace( JSON.encode(response) );
}