开发者

How to Tag photo in facebook with certain position

开发者 https://www.devze.com 2023-04-13 08:51 出处:网络
this is my开发者_开发技巧 app image...this uploads friends photo but,.,,tag is not inrandomposition..please help me to tag friends image correctly

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

精彩评论

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

关注公众号