Graph API 版本

/{user-id}/taggable_friends

此端點已停用。

可標籤或提及的朋友清單,用戶可在發佈至 Facebook 的動態中標籤或提及這些朋友。

/me/taggable_friends 關係連線傳回標籤憑證後,可以使用這些標籤憑證的位置包括:

讀取

Graph 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
}];

權限

欄位

可標籤的朋友清單:

名稱 描述 類型

id

只能用於標籤朋友,沒有任何其他用途的標籤憑證。此憑證不應將視為穩定的編號,而且不能用於限時動態朋友標籤的情況以外尋找朋友。

string

name

朋友姓名。

string

picture

朋友的個人檔案相片。

object

url

個人檔案相片網址。

string

is_silhouette

表明個人檔案相片是否為預設剪影圖片,還是已換為其他圖片。

bool

height

圖片高度(以像素為單位)。只有當 heightwidth 經指定為修改參數時,系統才會傳回這兩個參數。

int

width

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

int

發佈

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

刪除

您無法使用此邊緣刪除內容。

更新

您無法使用此邊緣作出更新。