グラフ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
}];

アクセス許可

  • user_friendsアクセス許可を持つユーザーアクセストークンが必要です。
  • このエッジを開発者以外の人が使用できるようにするには、まずアプリのレビューが必要です

フィールド

タグ付けできる友達のリスト

名前 説明

id

この友達をタグ付けするためだけに使用できるタグ付けトークン。ほかの目的には使用しません。このトークンは、安定したIDとは見なさないでください。ストーリーズでタグ付けするコンテキスト以外で友達を特定するためには使用できません。

string

name

友達の名前。

string

picture

友達のプロフィール写真。

object

url

プロフィール写真のURL。

string

is_silhouette

プロフィール写真がデフォルトの「シルエット」写真なのか、別のものに置き換わっているかを示します。

bool

height

ピクセル値で示した写真の高さ。heightwidthは、修飾子として指定された場合のみ返されます。

int

width

ピクセル値で示した写真の幅。

int

公開

このエッジを使って公開することはできません。

削除

このエッジを使って削除することはできません。

更新

このエッジを使ってコメントを更新することはできません。