私はプログラミングにまったく慣れておらず、ActionScript 3の基本を学ぶことができました。次に、UIクラス(すばらしいチュートリアルから取得)を使用して、as3SDKを介してFriends'Wallsに投稿する方法を学びたいと思います。
これは私が自分の壁に投稿する方法です:
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ドキュメントからです
プロパティ
from:メッセージを投稿するユーザーのIDまたはユーザー名。これが指定されていない場合、デフォルトで現在のユーザーになります。指定する場合は、ユーザーまたはユーザーが管理するページのIDである必要があります。
to:このストーリーが公開されるプロファイルのIDまたはユーザー名。>が指定されていない場合、デフォルトでfromの値になります。
うまくいけば、誰かが私を助けることができます。
よろしくお願いいたします。AmirPS:1人の友達の壁だけに投稿する方法と、複数の友達の壁に投稿する別の方法はありますか?