图谱 API 版

签到 /{check-in-id}

在基于地点的公共主页上完成的签到。

读取

图谱 API 探索工具
GET /v26.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
}];

权限

  • 如要查看用户的任何一次签到情况,需要拥有具备 user_checkins 权限的用户访问口令。

字段

名称 描述 类型

application

签到所使用的应用。

App

created_time

签到的创建时间。

datetime

from

签到的用户。

User

id

签到的唯一编号。

string

message

用户添加到签到的消息。

string

place

表示签到地点的 Facebook 公共主页。

Page

tags

作者在签到中标记的用户。

User[]

type

此对象的类型;始终返回 checkin

string

发布与更新

签到发布功能已停用,改为创建附加了地点的 Post。

连线

名称 描述

/comments

对签到贴子的评论。

/likes

对签到帖子的赞。