This document refers to a feature that was removed after Graph API v1.0.
Graph API Version

Question /{question-id}

A Facebook Question post.

Questions are deprecated for pages and users. This documentation exists only for historical reasons. You can still read the data from old questions, but you can't create new ones.

Reading

Graph API Explorer
GET /v2.10/{question-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/{question-id}'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/{question-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{question-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{question-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • A user access token with user_questions permission is required to view all questions by that person.
  • A Page access token is required to view all questions by that Page.

Fields

NameDescriptionReturns

id

The ID of the question.

string

created_time

Time when question was created.

datetime

from

Profile that asked the question.

Profile

question

Text of the question.

string

updated_time

Time when question was last updated.

datetime

Publishing

You can no longer create questions.

Deleting

You cannot delete questions using the Graph API.

Updating

You cannot update questions using the Graph API.

Edges

NameDescriptionType

/options

The options for people to answer this question as a list.

Question Option[]