[英]how to get photos of facebook group, as uploaded by people other than group admins? (via JavaScript)
[英]How to tag people on facebook photos?
我们开发了一个应用程序,该应用程序创建了一个包含五个朋友的jpg图像。 我们需要该应用为照片中的人物添加标签,但无法正常工作。 该代码似乎有效,因为我们没有任何错误。
var tagdata= new Array;
tag1['tag_uid'] =Lamigos[0];
tag1['x'] =41;
tag1['y'] =373;
tag2['tag_uid'] =Lamigos[1];
tag2['x'] =172;
tag2['y'] =373;
tag3['tag_uid'] =Lamigos[2];
tag3['x'] =302;
tag3['y'] =373;
tag4['tag_uid'] =Lamigos[3];
tag4['x'] =100;
tag4['y'] =436;
tag5['tag_uid'] =Lamigos[4];
tag5['x'] =100;
tag5['y'] =567;
tag['data']=tagdata;
tagdata[0]=tag1;
tagdata[1]=tag2;
tagdata[2]=tag3;
tagdata[3]=tag4;
tagdata[4]=tag5;
FB.api('/me/photos', 'post', {
message:'Ahora puedes...',
url:"http://www.xxxxxxx.com"+imgfin,
tags:tag
}, function(response){
if (!response || response.error) {
alert('Error al compartir tu lista');
} else {
vercapas(6);
document.getElementById("simgfin").src=imgfin;
document.getElementById("botcompartir").innerHTML="<a name='fb_share' type='button_count' href='http://www.facebook.com/sharer.php?u=http://www.xxxxxxxx.com" + imgfin + "&t=Estos son mis patas más patas'>Compartir</a>";
}
});
在发布到/ me / photos时, https://developers.facebook.com/docs/reference/api/user/#photos没有说tags
参数被接受。
我猜您在发布照片后必须添加标签-参见此处: https : //developers.facebook.com/docs/reference/api/photo/#tags
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.