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

insights

API Reference › FQL › insights

Description

An FQL table containing statistics about Applications, Pages, and Domains with 30 or more connections. Graph API objects have an equivalent Insights connection type.

Columns

NameDescription

breakdown

string

The breakdown requested for a custom_events query.

end_time

number

The end of the period during which the metrics were collected, expressed as a UNIX time (which should always be midnight, Pacific Daylight Time) or using the function end_time_date() which takes a date string in 'YYYY-MM-DD' format. Note: If the UNIX time provided is not midnight, Pacific Daylight Time, your query may return an empty resultset. Example: To obtain data for the 24-hour period starting on September 15th at 00:00 (i.e. 12:00 midnight) and ending on September 16th at 00:00 (i.e. 12:00 midnight), specify 1284620400 as the end_time and 86400 as the period. Note: end_time should not be specified when querying lifetime metrics

event

string

The event name for a custom_events query. This must be specified if the metric is custom_events. It can not be specified for any other metrics.

metric

string

The usage data to retrieve

object_id

string

The object for which you are retrieving metrics

period

string

The length of the period during which the metrics were collected, expressed in seconds as one of 86400 (day), 604800 (week), 2592000 (month) or 0 (lifetime) or using the function period() which takes one of the strings day, week, month or lifetime. Note: Each metric may not have all periods available

value

(number) or (string) or (list) or (list) or (map with string keys)

The value of the requested metric

Examples

  • SELECT ... FROM insights WHERE object_id = A AND metric = B AND end_time = C AND period = D
Note: Additional filters on other columns can be specified but they may make the query less efficient.

Permissions

To read insights you need:

  • Any valid access_token for the publicly available application_active_users metric
  • An app access_token for all app insights app
  • read_insights permissions for all apps, Pages and domains owned by the current session user

Use Facebook Insights to claim your domain.

For more details on which insights are available please review the Graph API Insights object

Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy