/{link-id}
يتوفر رابطًا تمت مشاركته على Facebook.
GET /v22.0/{link-id} 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(
'/{link-id}',
'{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(
"/{link-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{link-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{link-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
الاسم | الوصف | النوع |
---|---|---|
| يمثل معرف الرابط. |
|
| يمثل وقت نشر الرسالة. |
|
| يمثل وصف الرابط (يظهر أسفل الشرح التوضيحي للرابط). |
|
| المستخدم الذي أنشأ الرابط. | |
| عنوان URL لأيقونة الرابط التي يعرضها فيسبوك في الموجز. |
|
| يمثل عنوان URL الذي تمت مشاركته. |
|
| يمثل الرسالة الاختيارية من المستخدم بشأن هذا الرابط. |
|
| يمثل اسم الرابط. |
|
| يمثل عنوان URL الخاص بالصورة المصغرة المُستخدمة في منشور الرابط |
|
تم إيقاف الاستخدام في الإصدار 8.0 والإصدارات الأحدث. | يمثل التفاعلات أعجبني وأحببته وهاهاها وواااو وأحزنني وأغضبني وبلا في أي رابط. |
|
يرجى استخدام وثائق المشاركة للنشر.
لا يمكنك تحديث رابط باستخدام واجهة Graph API.