Versi Graph API

Tautan /{link-id}

Tautan yang dibagikan di Facebook.

Membaca

Graph API Explorer
GET /v19.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
}];

Izin

  • Token akses yang valid jika tautan bersifat publik

Kolom

Nama Deskripsi Jenis

id

ID tautan.

string

created_time

Waktu pesan diterbitkan.

datetime

description

Deskripsi tautan (muncul di bawah keterangan tautan).

string

from

Pengguna yang membuat tautan itu.

User

icon

URL ke ikon tautan yang ditampilkan Facebook di Kabar.

string

link

URL yang telah dibagikan.

string

message

Pesan opsional dari pengguna tentang tautan ini.

string

name

Nama tautan.

string

picture

URL gambar mini yang digunakan dalam postingan tautan

string

reactions


Dihentikan di v8.0+.

Reaksi, SUKA, SUPER, WOW, HAHA, MAAF, MARAH, TIDAK ADA, pada tautan.

string

Penerbitan

Gunakan Dokumentasi berbagi untuk menerbitkan.

Memperbarui

Anda tidak dapat memperbarui tautan menggunakan Graph API.

Edge

Nama Deskripsi

/likes

Orang yang menyukai tautan ini.

/comments

Komentar pada tautan ini.