0
我們開發了一款應用程序,可以創建一個由5位朋友組成的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>";
}
});
謝謝您的回答。所以我們不得不再次要求權限才能正確添加標籤? –
不一定「再次」,而是與第一個職位所需的其他許可一起... – CBroe