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

connection

API Reference › FQL › connection

Description

A user connection, friend of Facebook Page, as represented in FQL. These connections represent all the entities whose streams the specified user can consume. This table is primarily relevant for reconstructing the user's News Feed

Columns

NameDescription

is_following

bool

Indicates whether the source is connected to the target Page (for example, if the source is a supporter or fan). Will be false if the user has hidden the friend or target's news feed.

source_id

id

The ID of the user, the source of the connection.

target_id

id

The target(s) of the connection. The ID of the friend or Facebook Page with whom the specified user is either a friend or fan/supporter.

target_type

string

Indicates whether the target is a user or a page.

Examples

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

Permissions

To read the connection table you need

  • any valid user access_token with the read_stream extended permission.
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy