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>";
      }
   }); 
4

1 に答える 1

1

https://developers.facebook.com/docs/reference/api/user/#photostagsは、/me/photos への投稿時にパラメーターが受け入れられるとは言いません。

写真を投稿したにタグを追加する必要があると思います- ここを参照してください: https://developers.facebook.com/docs/reference/api/photo/#tags

于 2012-06-27T18:09:52.723 に答える