Facebook Developers
DocumentationSupportBlogAppsLog In
  • Getting Started
  • Core Concepts
  • Advanced Topics
    • Dialogs
    • FQL
    • Internationalization
    • Ads API
    • Credits
    • Chat API
    • Legacy REST API
    • Legacy FBML
    • Legacy FBJS
    • Legacy Javascript SDK
  • SDK Reference
  • Tools
  • Tables
    • album
    • application
    • apprequest
    • checkin
    • comment
    • comments_info
    • connection
    • cookies
    • developer
    • domain
    • domain_admin
    • event
    • event_member
    • family
    • friend
    • friend_request
    • friendlist
    • friendlist_member
    • group
    • group_member
    • insights
    • like
    • link
    • link_stat
    • location_post
    • mailbox_folder
    • message
    • note
    • notification
    • object_url
    • offer
    • page
    • page_admin
    • page_blocked_user
    • page_fan
    • page_milestone
    • permissions
    • permissions_info
    • photo
    • photo_src
    • photo_tag
    • place
    • privacy
    • privacy_setting
    • profile
    • profile_view
    • question
    • question_option
    • question_option_votes
    • review
    • standard_friend_info
    • standard_user_info
    • status
    • stream
    • stream_filter
    • stream_tag
    • subscription
    • thread
    • translation
    • unified_message
    • unified_thread
    • unified_thread_action
    • unified_thread_count
    • url_like
    • user
    • video
    • video_tag

mailbox_folder

Advanced Topics › FQL › mailbox_folder

An FQL table containing information about a user's mailbox folders. The Graph API User object has an inbox connection that refers to the user's inbox folder.

To read mailbox_folder you need

  • read_mailbox permissions

Example

Retrieve the number of unread inbox messages for the current user:

SELECT name, unread_count, total_count FROM mailbox_folder WHERE folder_id = 0 and viewer_id = me()

Columns

IndexableNameTypeDescription
*folder_idstring

The ID of the folder being queried. The ID can be one of: 0 (for Inbox), 1 (for Outbox), or 4 (for Updates).

*viewer_idint

The ID of the user whose Inbox you are querying.

namestring

A short description of the folder being queried.

unread_countint

The number of unread threads in the folder being queried.

total_countint

The number of total threads.


See Also

  • thread (FQL)

  • message (FQL)

Updated about 5 months ago
Facebook © 2012 · English (US)
AboutCareersPlatform PoliciesPrivacy Policy