เวอร์ชันของ API กราฟ

/{user-id}/taggable_friends

ตำแหน่งข้อมูลนี้เลิกใช้แล้ว

รายชื่อเพื่อนที่สามารถแท็กหรือกล่าวถึงได้ในเรื่องราวที่เผยแพร่ไปยัง Facebook

สถานที่ซึ่งสามารถใช้โทเค็นการแท็กที่ส่งกลับมาโดยจุดเชื่อมโยง /me/taggable_friends ซึ่งรวมถึงรายการต่อไปนี้:

การอ่าน

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

สิทธิ์การอนุญาต

ช่อง

รายชื่อเพื่อนที่แท็กได้:

ชื่อ คำอธิบาย ประเภท

id

โทเค็นการแท็กที่สามารถใช้เพื่อแท็กเพื่อนคนนี้เท่านั้นโดยใช้เพื่อจุดประสงค์อื่นไม่ได้ โดยไม่ควรถือว่าโทเค็นนี้เป็น ID ที่เสถียร และไม่สามารถใช้เพื่อระบุเพื่อนที่อยู่นอกบริบทการแท็กเพื่อนในเรื่องราวได้

string

name

ชื่อของเพื่อน

string

picture

รูปโปรไฟล์ของเพื่อน

object

url

URL ของรูปโปรไฟล์

string

is_silhouette

ระบุว่ารูปโปรไฟล์เป็น 'ภาพเงา' ตามค่าเริ่มต้นหรือมีการเปลี่ยนแล้ว

bool

height

ความสูงของรูปภาพเป็นพิกเซล โดยจะส่งคืน height และ width ก็ต่อเมื่อระบุเป็นตัวแก้ไขเท่านั้น

int

width

ความกว้างของรูปภาพเป็นพิกเซล

int

การเผยแพร่

คุณไม่สามารถใช้จุดเชื่อมโยงนี้เผยแพร่ได้

การลบ

คุณไม่สามารถใช้จุดเชื่อมโยงนี้ลบได้

การอัพเดต

คุณไม่สามารถอัพเดตโดยใช้จุดเชื่อมโยงนี้ได้