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

unified_thread_count

API Reference › FQL › unified_thread_count

Description

Provides the number of threads in a specific folder.

Columns

NameDescription

folder

string

Folder name ('inbox', 'other' or 'spam')

last_action_id

string

The highest action ID of a thread in a particular folder. The value increases as new messages are added. This can be useful for checking whether there are any new threads in the folder

last_seen_time

string

Last time the folder was accessed (UNIX timestamp, in milliseconds)

refetch_action_id

string

Refetch action ID of a thread in a particular folder. If your cached action ID is lower than this value, you should do a full refetch instead of syncing incrementally via unified_thread_sync

total_threads

unsigned int32

Total number of non-archived threads

unread_count

unsigned int32

Number of unread threads in the folder

unseen_count

unsigned int32

Number of unseen threads in the folder

Examples

  • SELECT ... FROM unified_thread_count WHERE folder = A
  • SELECT ... FROM unified_thread_count WHERE unread_count = A
  • SELECT ... FROM unified_thread_count WHERE unseen_count = A
  • SELECT ... FROM unified_thread_count WHERE last_action_id = A
  • SELECT ... FROM unified_thread_count WHERE last_seen_time = A
  • SELECT ... FROM unified_thread_count WHERE total_threads = A
Note: Additional filters on other columns can be specified but they may make the query less efficient.

Permissions

Access to this table requires the read_mailbox extended permission.

Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy