Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
    • Graph API
    • FQL
    • Open Graph
    • Dialogs
    • Chat
    • Internationalization
    • Ads
  • Games
  • Media
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • Web
  • Technology Partners
  • Tables
    • album
    • app_role
    • application
    • apprequest
    • checkin
    • comment
    • comments_info
    • connection
    • cookies
    • column
    • developer
    • domain
    • domain_admin
    • event
    • event_member
    • family
    • friend
    • friendlist
    • friendlist_member
    • friend_request
    • group
    • group_member
    • insights
    • like
    • link
    • link_image_src
    • link_stat
    • location_post
    • mailbox_folder
    • message
    • note
    • notification
    • object_url
    • page
    • page_admin
    • page_blocked_user
    • page_global_brand_child
    • page_fan
    • page_milestone
    • permissions
    • permissions_info
    • photo
    • photo_src
    • photo_tag
    • place
    • privacy
    • privacy_setting
    • profile
    • profile_tab
    • profile_view
    • question
    • question_option
    • question_option_votes
    • review
    • score
    • standard_friend_info
    • standard_user_info
    • status
    • stream
    • stream_filter
    • stream_tag
    • subscription
    • table
    • thread
    • translation
    • unified_message
    • unified_message_count
    • unified_message_sync
    • unified_thread
    • unified_thread_action
    • unified_thread_count
    • unified_thread_sync
    • url_like
    • user
    • video
    • video_tag

photo_tag

API Reference › FQL › photo_tag

Description

A photo tag as represented in FQL.

Columns

NameDescription

created

timestamp

The date that the tag being queried was created (UNIX timestamp)

object_id

id

The object ID of the photo being queried. Preferred over pid

pid

string

The ID of the photo being queried. The pid cannot be longer than 50 characters. Note: Because the pid is a string, you should always wrap the pid in quotes when referenced in a query

subject

string

The ID of the object that is tagged, e.g. user, group, and event. For photos associated with events or groups, use the eid or gid for subject

text

string

The content of the tag being queried. It contains either the name of the user tagged or the text tag

xcoord

float

The center of the tag's horizontal position, measured as a floating-point percentage from 0 to 100, from the left edge of the photo

ycoord

float

The center of the tag's vertical position, measured as a floating-point percentage from 0 to 100, from the top edge of the photo

Examples

  • SELECT ... FROM photo_tag WHERE object_id = A
  • SELECT ... FROM photo_tag WHERE pid = A
  • SELECT ... FROM photo_tag WHERE subject = A
Note: Additional filters on other columns can be specified but they may make the query less efficient.

Permissions

To read the photo_tag table you need the following permissions:

User:

  • user_photos permissions to access photo tag information that a user is tagged in.
  • friends_photos permissions to access photo tag information that a friend is tagged in.

Group:

  • any valid access_token to access photo tags of a public group.
  • user_photos permissions to access photo tags of a user for a non-public group that the current user is a member of.
  • friends_photos permissions to access photo tags of a friend for a non-public group that the current user is a member of.

Event:

  • any valid access_token to access photo tags of a public event.
  • user_photos permissions to access photo tags of a user for a non-public event that the current user has been invited to. If the invited user removes the event from their list they will no longer be able to read the table.
  • friends_photos permissions to access photo tags of a friend for a non-public event that the current user has been invited to. If the invited user removes the event from their list they will no longer be able to read the table.

Note: You can also use the photo_tag FQL table to query for photos associated with a group (given its gid) or event (given its eid). See below for sample queries on how to do this.

Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy