Помогите со следующей проблемой пожалуйста.

Код AS3:
if(PermissionAllowed){
var msg:String = "";
var attachment:Object = {
name:""+prizeStatus+"",
href:"http://apps.facebook.com/vegasslotgames/",
caption:"",
description:"Be sure to join in the Fun and Excitment playing Vegas Slot Games as you can win big too ! "+"<br>"+"\nPLAY NOW !",
//properties:
media: [{
type: "image",
src: String(postImgString),
href: "http://apps.facebook.com/vegasslotgames/"
}]};
var actionLinkData:ActionLinkData = new ActionLinkData();
actionLinkData.href = "http://apps.facebook.com/vegasslotgames/";
actionLinkData.text = "Play Vegas Slot Games";
var post:PublishPost = new PublishPost(msg, attachment, [actionLinkData], String(fbook.uid));
post.addEventListener(FacebookEvent.COMPLETE, FB_onPublishPostComplete, false, 0, true);
var call = fbook.post(post);
Это от предидущего Rest API это я кагда то делал но сейчас нужно тоже самое делат для Graph API но пока не совсем получается. К стате это пост на свою стену а это постит на стены всех друзей.

Код AS3:
if(PermissionAllowed){
for(var i:int=0; i<myFriendsUIDs.length; i++){
var msg1:String = "";
var attachment1:Object = {
name:"I am looking for more credits in Vegas Slot Games!",
href:"http://apps.facebook.com/vegasslotgames/index.php?component=com_free_credit&function=send_credit",
caption:"",
description:"Hello, I am looking for more Credits in Vegas Slot Games. Please be kind enough to Help me as I will Help you in return. Join in the Fun Now!",
//properties:
media: [{
type: "image",
src: String("http://www.freeclickgames.com/apps/modules/mod_swf/images/ask_for_credits.png"),
href: "http://apps.facebook.com/vegasslotgames/"
}]};
var actionLinkData1:ActionLinkData = new ActionLinkData();
actionLinkData1.href = "http://apps.facebook.com/vegasslotgames/index.php?component=com_free_credit&function=send_credit";
actionLinkData1.text = "Send Free Credits";
var post1:PublishPost = new PublishPost(msg1, attachment1, [actionLinkData1], String(myFriendsUIDs[i]));
post1.addEventListener(FacebookEvent.COMPLETE, FB_onPublishPostComplete, false, 0, true);
var call1 = fbook.post(post1);
}
}
Нужно переделать тоже самое на Графе
