开发者

How to Tag photo in facebook with certain position

this is my开发者_开发技巧 app image...this uploads friends photo but,.,,tag is not inrandom position..please help me to tag friends image correctly http://shapper.co.tv/1/hiii.jpg


Once you have the photo's Graph ID, you can tag your friends by passing the co-ordinate, like the following Graph API call with JS-SDK

if (accessToken) {
var data = {
    "access_token": accessToken,
    to:userId,
    x:x,
    y:y
}
FB.api("/" + photoId+"/tags/"+userId , 'post', data, function(response) {
    //here is the response
});

Hope it helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜