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
    • App and Game Groups
    • 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

QuestionOption

Facebook APIs › Graph API › QuestionOption

An option allowed as an answer to a Question, as represented in the Graph API.

The Question object has an options connection which returns QuestionOption objects.

To read a QuestionOption, you need the following permissions:

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

Example

To read the options available for particular question, issue an HTTP GET to:

https://graph.facebook.com/me/QUESTION_ID/options

Fields

NameDescriptionPermissionsReturns
id

QuestionOption ID

user_questions or friends_questions

string

from

User who asked the question

user_questions or friends_questions

Object containing id and name fields

name

Text name of the option

user_questions or friends_questions

string

vote_count

Number of votes this option has received

user_questions or friends_questions

integer

object

Optional page associated with this option

user_questions or friends_questions

object containing name, category, and id of a Page associated with this option

created_time

Time when option was created

user_questions or friends_questions

string containing ISO-8601 datetime

Connections

NameDescriptionPermissionsReturns
votes

The votes a particular option to a question has received

user_questions or friends_questions

array of objects containing the id and name of users who have voted for this specific option

Updated about 5 months ago
Facebook © 2013 · English (US)
AboutAdvertisingCareersPlatform PoliciesPrivacy Policy