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

like

API Reference › FQL › like

Description

An FQL table that returns the IDs of users who like a given object (video, note, link, photo, or album).

Columns

NameDescription

object_id

numeric string

The object_id of a video, note, link, photo, or album. Note: For photos and albums, the object_id is a different field from the photo table pid field and the album table aid field, use the specified object_id from those tables instead.

object_id_cursor

string

Cursor on the object_id field

object_type

string

The type of the liked object. One of: photo, album, event, group, note, link, video, application, status, check-in, review, comment, post

post_id

string

The id of a post on Facebook. This can be a stream post containing a status, video, note, link, photo, or photo album. Note: These post IDs must be queried from the stream FQL table.

post_id_cursor

string

Cursor on the post_id field

user_id

id

The user who likes this object.Note: Indexable only for the current session user with read_stream permission.

user_id_cursor

string

Cursor for the user_id field

Examples

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

Permissions

To read the likes table you need

  • any valid access_token if it is public (visible to anyone on Facebook).
  • any valid access_token for the current session user if it is not public and is visible to the user.
  • read_stream [permissions][1] to query user_id as an indexable field.
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy