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.
精彩评论