/{question-option-id}
This endpoint is deprecated in v8.0+.
An option given as an answer to a Facebook Question post.
GET /v16.0/{question-option-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{question-option-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{question-option-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{question-option-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{question-option-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
user_questions
permission is required to view all questions by that person.Name | Description | Returns |
---|---|---|
id | The ID of this option. |
|
created_time | Time when option was created. |
|
from | Profile that created the question. | |
name | Text name of the option. |
|
object | Any Page associated with this option. | |
vote_count | Number of votes this option has received. |
|
You can no longer create question options or questions.
You cannot delete options using the Graph API.
You cannot update options using the Graph API.
This endpoint is deprecated in v8.0+.
Name | Description | Type |
---|---|---|
/votes | The votes a particular option to a question has received as a list of the people who voted. |