可以用 tags 這個這個屬性,
tags:JSON.encode([ { "tag_uid":_friendId, "x":0, "y":0 } ])
說明如下,
tag_uid: friend id
tag_text: some text
x: 水平x座標,百分比[0-100]
y: 垂直y座標,百分比[0-100]
*注意* 最後記得要 JSON.encode 成字串
完整範例如下
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facebook.api("me/photos", function(result:Object, fail:Object):void | |
{ | |
if (result) { | |
trace("success"); | |
// blah blah blah... | |
} | |
}, | |
{ | |
image:bmp, message:"your message", fileName:'card.jpg', tags:JSON.encode([ { "tag_uid":_friendId, "x":0, "y":0 } ]) | |
} | |
); |
沒有留言:
張貼留言