Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Graph API Version

Check-in /{check-in-id}

A check-in made to a location-based Page.

Reading

Graph API Explorer
GET /v21.0/{check-in-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(
    '/{check-in-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(
    "/{check-in-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{check-in-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:@"/{check-in-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Permissions

  • A user access token with user_checkins permission is required to view any check-ins by that person.

Fields

Name Description Type

application

The app that made the check-in.

App

created_time

The time the check-in was created.

datetime

from

The user who made the check-in.

User

id

The check-in's unique ID.

string

message

The message the user added to the check-in.

string

place

The Facebook Page that represents the location of the check-in.

Page

tags

The people that the author tagged in the check-in.

User[]

type

The type of this object; always returns checkin

string

Publishing and Updating

Publishing of check-ins is deprecated in favor of creating a Post with a location attached.

Edges

Name Description

/comments

Comments on the check-in post.

/likes

Likes of the check-in post.