圖形 API 版本

/{user-id}/taggable_friends

此端點已停用。

可以在 Facebook 發佈的限時動態中標註或提及的朋友名單。

/me/taggable_friends 關係連線傳回的標註權杖可以使用的地標包括:

讀取

圖形 API 測試工具
GET /v19.0/me/taggable_friends 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(
    '/me/taggable_friends',
    '{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(
    "/me/taggable_friends",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/me/taggable_friends",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/me/taggable_friends"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

權限

欄位

可標註的朋友名單:

名稱 說明 Type

id

只能用來標註朋友,不可用於其他目的的標註權杖。不應將此權杖視為穩定編號,且不能用於在限時動態中標註朋友的情境之外識別朋友。

string

name

朋友的名稱。

string

picture

朋友的大頭貼照。

object

url

大頭貼照的網址。

string

is_silhouette

指出大頭貼照是否為預設的「剪影」圖片,或已替換。

bool

height

圖片高度(單位為像素)。指定為修飾詞時,只會傳回 heightwidth

int

width

圖片寬度(單位為像素)。

int

發佈

您無法使用這個關係連線發佈內容。

刪除

您無法使用這個關係連線刪除。

更新

您無法使用這個關係連線更新。