Closed GoogleCodeExporter closed 9 years ago
i heard somewhere that the graph api doesnt support tagging a picture by
uploading. you can do that by using the rest api.
Original comment by marc.storch@gmail.com
on 30 Mar 2011 at 12:42
[deleted comment]
Hi, I could solve it.
Send the information's to PHP using AMFPHP ... and since I could add tags
with PHP GRAPH API
PHP code:
function compartirFoto($archivo, $tags, $idFiesta)
{
include_once "fbmain.php";
$tagged = array();
for ($i = 0; $i < count($tags); $i++) {
$tag = array(
'tag_uid' => $tags[$i][4],
'tag_text'=> $tags[$i][3],
'x' => $tags[$i][1],
'y' => $tags[$i][2]
);
if($tags[$i][4] != null || $tags[$i][3] != null){
array_push($tagged, $tag);
}
}
$image = array(
'access_token' => $session['access_token'],
);
if (count($tagged) > 0) {
$image['tags'] = $tagged;
}
$facebook->setFileUploadSupport(true);
$image['image'] = '@'.realpath($archivo);
$facebook->api('/me/photos', 'POST', $image);
return "Success!";
}
Original comment by sguidob...@gmail.com
on 30 Mar 2011 at 12:52
good! :)
Original comment by marc.storch@gmail.com
on 30 Mar 2011 at 2:49
Original comment by rovertn...@gmail.com
on 31 Mar 2011 at 3:53
Hola compañero.... aqui en este link encontrarás manera adecuada de utilizar
Facebook.api para postear una foto y a la vez incluirle tags.
http://graciasinternet.blogspot.com/2011/05/tagear-fotos-con-facebookapi-en-as3.
html
El asunto que debes tener presente es que no se hasta cuantos tags se pueden
por foto, o sino facebook con su codigo inteligente te elimina la aplicación.
Original comment by elkin0...@gmail.com
on 13 May 2011 at 11:55
Original issue reported on code.google.com by
sguidob...@gmail.com
on 29 Mar 2011 at 1:56