Graph API Version

Graph API Reference /{user-id}/pokes

The Facebook Pokes that a person received but didn't responded to.

Reading

Graph API Explorer
GET /v2.10/me/pokes HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/me/pokes'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/me/pokes",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/pokes",
    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:@"/me/pokes"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • A user access token with read_mailbox permission is required to see pokes for that person.

Fields

NameDescriptionType

from

The person who sent the poke.

User

to

The person who received the poke - this is always the person whose access token is being used.

User

created_time

When the poke was sent.

datetime

Publishing

You can't publish using this edge, as it isn't possible to send pokes via the API.

Deleting

You can't delete using this edge.

Updating

You can't update using this edge.