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
  • Objects
    • Achievement(Instance)
    • Album
    • Application
    • Checkin
    • Comment
    • Domain
    • Errors
    • Event
    • Field Expansion
    • FriendList
    • Group
    • Insights
    • Link
    • Message
    • Note
    • Offer
    • Order
    • Page
    • Pagination
    • Payment
    • Photo
    • Pictures
    • Post
    • Privacy Parameter
    • Publishing
    • Question
    • QuestionOption
    • Realtime Updates
    • Review
    • Search
    • Selecting Results
    • Status message
    • Thread
    • User
    • Video

Question

Facebook APIs › Graph API › Question

A question asked by a user, as represented in the Graph API.

The User object has a questions connection that returns questions posed by the current user.

To read a Question, you need the following permissions along with a valid access token:

  • user_questions for questions asked by the current user.
  • friends_questions for questions asked by friends of the current user.

To publish a 'question' you need:

  • a valid access token
  • publish_stream permission

With that granted, you can post a question on behalf of a user or a Page by issuing an HTTP POST request with the question content to:

https://graph.facebook.com/PROFILE_ID/questions

Example

Questions that the current user has asked:

https://graph.facebook.com/me/questions

Posting a question:

  curl -F 'access_token=...' \
       -F 'question=What is your favorite color?' \
       https://graph.facebook.com/me/questions

Fields

NameDescriptionPermissionsReturns
id

Question ID

user_questions or friends_questions

string

from

User who asked the question

user_questions or friends_questions

Object containing id and name fields

question

Text of the question

user_questions or friends_questions

string

created_time

Time when question was created

user_questions or friends_questions

string containing ISO-8601 datetime

updated_time

Time when question was last updated

user_questions or friends_questions

string containing ISO-8601 datetime

options

The list of options available as answers to the question

user_questions or friends_questions

Object containing data[] array of options, as described in the options connection below

Connections

NameDescriptionPermissionsReturns
options

The options available as answers to the question

user_questions or friends_questions

array of QuestionOption objects

options

Create

You can write to the QUESTIONS_ID/options connection to post a option to the question by issuing an HTTP POST request with the publish_stream permission and following parameters.

Parameter Description Type Required
option Description of option string no

If the write is successful, you get the following return.

Name Description Type
id option ID string

How-Tos

  • How-To: Post a question to a Facebook Page
Updated over a year ago
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy