Facebook Developers
DocsToolsSupportNewsApps
Log In
  • Social Plugins
  • Facebook Login
  • Open Graph
  • Facebook APIs
    • Graph API
    • FQL
    • Open Graph
    • Dialogs
    • Chat
    • Internationalization
    • Ads
  • Games
  • Payments
  • App Center
  • Promote Your App
  • iOS
  • Android
  • JavaScript
  • PHP
  • More SDKs
  • 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
    • offsite_conversion_event
    • 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_src

API Reference › FQL › photo_src

Description

Represents the source URL of a photo as represented in FQL.

The Photo object has an equivalent src connection. Using photo_src FQL, you can retrieve images with the following dimensions: 960, 720, 480, 320, 180, 130, 75 pixels.

Columns

NameDescription

height

unsigned int32

The height of the bounding box of the photo, in pixels. Note that this is not the height of the photo itself; please see the photo table for information on how to retrieve the dimensions of the photo itself

photo_id

string

The ID of the photo being queried

size

string

A string representing the max size of the image returned. For example, 640X640. Note: If you want an exact dimension, use width and height

src

string

URL of the photo

width

unsigned int32

The width of the bounding box of the photo, in pixels. Note that this is not the width of the photo itself; please see the photo table for information on how to retrieve the dimensions of the photo itself

Examples

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

Permissions

To read the photo_src 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 photos of a public group.
  • user_photos permissions to access photos of a user for a non-public group that the current user is a member of.
  • friends_photos permissions to access photos of a friend for a non-public group that the current user is a member of.

Event:

  • any valid access_token to access photos of a public event.
  • user_photos permissions to access photos 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 photos 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

Returned image sizes will not be larger than the actual dimensions of the original uploaded version of the photo.

Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy