/{user-id}
/taggable_friends
Điểm cuối này không còn được dùng nữa.
Danh sách bạn bè có thể được gắn thẻ hoặc nhắc đến trong các tin đăng lên Facebook.
Dưới đây là những vị trí có thể dùng mã gắn thẻ do cạnh /me/taggable_friends
trả về:
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
.Danh sách bạn bè có thể gắn thẻ:
Tên | Mô tả | Loại |
---|---|---|
| Một mã gắn thẻ chỉ có thể được dùng cho mục đích duy nhất là gắn thẻ người bạn này. Mã này không được xem là một ID cố định và không thể dùng để xác định bạn bè bên ngoài ngữ cảnh họ được gắn thẻ trong tin. |
|
| Tên của bạn bè. |
|
| Ảnh đại diện của bạn bè. |
|
Bạn không thể đăng bằng cạnh này.
Bạn không thể xóa bằng cạnh này.
Bạn không thể cập nhật bằng cạnh này.