/{user-id}
/taggable_friends
此端點已停用。
可以在 Facebook 發佈的限時動態中標註或提及的朋友名單。
/me/taggable_friends
關係連線傳回的標註權杖可以使用的地標包括:
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
權限的用戶存取權杖。可標註的朋友名單:
名稱 | 說明 | Type |
---|---|---|
| 只能用來標註朋友,不可用於其他目的的標註權杖。不應將此權杖視為穩定編號,且不能用於在限時動態中標註朋友的情境之外識別朋友。 |
|
| 朋友的名稱。 |
|
| 朋友的大頭貼照。 |
|
您無法使用這個關係連線發佈內容。
您無法使用這個關係連線刪除。
您無法使用這個關係連線更新。