0

I'm using the the Adobe ActionScript 3 SDK for Facebook Platform to get all the tagged photos of the current user. Is this possible?

I've tried this:

FacebookDesktop.api("/"+uid+"/photos",getTagedPhotosHandler);

But that only gets me the photos belonging to that user.

grapefrukt
  • 27,016
  • 6
  • 49
  • 73

1 Answers1

0

You will most likely have to use FQL to perform the initial PID search...then batch the pids and request urls. The following FB docs pages have further information:

photo

photo_tag

These requests would be necessairy:

SELECT pid FROM photo_tag WHERE subject=$uid

and

SELECT src, src_small, src_big FROM photo WHERE pid=$pid

you might be able to combine them into the following...

select src, src_small, src_big from photo where pid in (select pid from photo_tag where uid=me())

The final execution would look something like this:

Facebook.fqlQuery
(
    "select src, src_small, src_big FROM photo WHERE pid in (select pid FROM photo_tag where uid=me())",
    facebook_photosHandler
);

I believe extended permissions are required. Each of the pages above should list permissions reqs for performing these FQL queries.

Best of luck.

stat
  • 411
  • 2
  • 6