Versi Graph API

/{user-id}/taggable_friends

Endpoint ini tidak berlaku lagi.

Daftar teman yang dapat ditandai atau disebutkan dalam cerita yang diterbitkan di Facebook.

Tempat untuk menggunakan token pemberian tanda yang diberikan oleh edge /me/taggable_friends:

Membaca

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

Izin

Kolom

Daftar teman yang dapat ditandai:

Nama Deskripsi Jenis

id

Token pemberian tanda yang hanya dapat digunakan untuk menandai teman ini, dan bukan tujuan lain. Token ini tidak boleh dianggap ID stabil, dan tidak bisa digunakan untuk mengidentifikasi teman di luar konteks menandai mereka dalam cerita.

string

name

Nama teman.

string

picture

Foto profil teman.

object

url

URL foto profil.

string

is_silhouette

Menunjukkan apakah foto profil adalah gambar 'siluet' default, atau telah diganti.

bool

height

Tinggi gambar dalam piksel. height dan width hanya ditampilkan jika ditentukan sebagai pengubah.

int

width

Lebar gambar dalam piksel.

int

Penerbitan

Anda tidak dapat menerbitkan dengan edge ini.

Menghapus

Anda tidak dapat menghapus dengan edge ini.

Memperbarui

Anda tidak dapat memperbarui dengan edge ini.