그래프 API 버전

링크 /{link-id}

Facebook에 공유된 링크

읽기

그래프 API 탐색기
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
}];

권한

  • 모든 유효한 액세스 토큰(링크가 공개되어 있을 경우)

필드

이름 설명 유형

id

링크 ID

string

created_time

메시지가 공개된 시각

datetime

description

링크에 대한 설명(링크 캡션 아래에 표시)

string

from

링크를 만든 사용자

User

icon

Facebook이 피드에 표시하는 링크 아이콘의 URL

string

link

공유된 URL

string

message

이 링크에 대한 사용자의 선택적 메시지

string

name

링크의 이름

string

picture

링크 게시물에 사용된 썸네일 이미지의 URL

string

reactions


v8.0 이상에서 사용 중단됨

링크에 대한 공감(LIKE, LOVE, WOW, HAHA, SORRY, ANGRY, NONE)

string

게시

게시하려면 공유 문서를 참조하세요.

업데이트

그래프 API를 사용해서 링크를 업데이트할 수 없습니다.

에지

이름 설명

/likes

이 링크에 '좋아요'를 누른 사람

/comments

이 링크에 달린 댓글