How do you Facebook tag you and your friends in photos on an external website?

This is an example of it in action, but not sure how they did it:


Basically I want people to be able to tag themselves and their Facebook friends in photos on my website. Surely it must be possible since they did it here. Any ideas how this is done?

1 Answer 1


This is accomplished through the Facebook Graph API.

At Facebook's core is the social graph; people and the connections they have to everything they care about. The Graph API presents a simple, consistent view of the Facebook social graph, uniformly representing objects in the graph (e.g., people, photos, events, and pages) and the connections between them (e.g., friend relationships, shared content, and photo tags).

The connections supported for people and pages include:
Friends: https://graph.facebook.com/me/friends?access_token=...
Photo Tags: https://graph.facebook.com/me/photos?access_token=...
Photo Albums: https://graph.facebook.com/me/albums?access_token=...
Video Tags: https://graph.facebook.com/me/videos?access_token=...

…among others.

  • Thanks! Ahhh, so it's as easy as requesting a URL to retrieve a formatted list of results. I still don't think you can actually "tag" yourself in external photos, but rather announce to your FB friends that you are in a specific photo.
    – user433575
    Commented Nov 10, 2011 at 5:59
  • 1
    I was fairly certain that you could, but a close reading of the API documentation seems to suggest that tagging someone in a photo might not be possible. I is possible, though, to @Tag someone as you would in a status update (see stackoverflow.com/questions/4327353/… ) perhaps that's been extended to photos?
    – msanford
    Commented Nov 14, 2011 at 3:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.