我絕對是編程新手,剛剛學會了ActionScript 3的基礎知識。現在,我想了解如何在我的朋友的牆上發佈信息使用UI類(從一個不錯的教程採取)的AS3 SDK:通過Facebook發佈在朋友牆上Actionscript 3 SDK
這是我張貼在我自己的牆:
protected function newsFeed():void
{
// define your caption text
var theCaption:String = "CaptionText";
// define the descrition text
var theDescription:String = "Text for game Achievement";
// We need to follow the FB docs to tell it what sort of input we are sending to FB
// We are trying to set the 'feed'
var methodInput:String = 'feed';
var thePicture:String = "mylink/picture.png";
var theLink:String = "mylink";
var theName:String = "Name of FB Status Setter";
// Create an object that we'll call 'data' and fill it with the actual data we're sending to Facebook
var data:Object = {
caption:theCaption,
description:theDescription,
picture:thePicture,
name:theName,
link:theLink
};
Facebook.ui(methodInput, data, onUICallback);
}
protected function onUICallback(result:Object):void
{
// do something
}
這工作完全正常。我知道我必須在某處集成參數「to」。但我不知道在哪裏以及如何。對不起,我對此很新。這是來自Facebook文檔
屬性
從:用戶張貼消息的ID或用戶名。如果未指定,則默認爲當前用戶。如果指定,它必須是用戶管理的用戶或頁面的ID。
發送給:此故事將發佈到的配置文件的ID或用戶名。如果這個>未指定,則默認爲from的值。
希望有人能幫助我。
最好的問候, 埃米爾 P.S .:是否有辦法只發佈一個朋友的牆和另一種方式張貼在幾個朋友的牆上?
最近我見過很多非常類似的問題。這是班級任務嗎? – 2012-02-29 17:06:32
你好,不,這不是班級任務。你從哪裏得到類似的問題,也許我應該看看?我做了一個巨大的谷歌研究,找不到任何東西(as3-sdk FRIEND的牆) – 2012-03-01 21:40:00
我在過去的幾周裏看到了很多關於Stack Overflow的facebook問題。我記得至少有一個是專門發佈到FB Wall的。但是,我沒有讀過它,因爲我沒有找到答案的線索。只是注意到一種趨勢。 – 2012-03-01 21:48:18