Graph API Reference v27.0: Video Poll Option - Documentation - Meta for Developers
Graph API Overview Get Started Batch Requests Debug Requests Handle Errors Field Expansion Secure Requests Changelog Reference Graph API Version v27.0 Video Poll Option Reading Represents a single poll option that may be selected by the user Feature Permissions Name Description Live Video API This is a required feature permission Example Graph API Explorer GET /v27.0/{video-poll-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( '/{video-poll-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( "/{video-poll-option-id}", function (response) { if (response && !response.error) { /* handle the result */ } } ); /* make the API call */ new GraphRequest( AccessToken.getCurrentAccessToken(), "/{video-poll-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:@"/{video-poll-option-id}" parameters:params HTTPMethod:@"GET"]; [request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) { // Handle the result }]; If you want to learn how to use the Graph API, read our Using Graph API guide .
Parameters This endpoint doesn't have any parameters. Fields Field Description id numeric string Poll option ID Core is_correct bool True if this answer is considered correct, otherwise false order int32 Options appear in increasing numerical order within a poll text string Text to display to the user for this option Default total_votes int32 Total number of votes for this option Error Codes Error Description 100 Invalid parameter Creating You can't perform this operation on this endpoint.
Updating You can't perform this operation on this endpoint. Deleting You can't perform this operation on this endpoint.