IT TIP

v2.4에서 / [post-id]가 더 이상 사용되지 않으므로 개별 게시물을 검색하려면 어떻게해야합니까?

itqueen 2020. 12. 7. 21:20
반응형

v2.4에서 / [post-id]가 더 이상 사용되지 않으므로 개별 게시물을 검색하려면 어떻게해야합니까?


방금이 경로를 사용하여 Graph API Explorer를 시도했는데 /v2.4/10153513872748291이 결과를 얻었습니다.

{
  "error": {
    "message": "(#12) singular links API is deprecated for versions v2.4 and higher",
    "type": "OAuthException",
    "code": 12
  }
}

하지만 https://developers.facebook.com/docs/reference/api/post/ 는 지원 중단에 대해 아무 말도하지 않습니다.

내가 놓친 것이 있는지 또는 개별 게시물에 대한 정보를 얻을 수있는 다른 방법이 있는지 잘 모르겠습니다.

편집 : v2.3이 작동하지만 v2.4가 최신 버전입니다.


이제 게시물을 만든 사용자 또는 페이지의 ID (또는 해당 게시물이있는 사람), 밑줄, 게시물 ID의 조합이 필요한 것 같습니다.

예제 게시물의 경우 ID가 10153513872748291있는 페이지 Drama-addict에서 만든 , 141108613290따라서 141108613290_10153513872748291작동합니다.

그리고 그렇게 788239567865981_10153513872748291때문에, 788239567865981게시물을 작성하는 사용자의 ID입니다.


Firstput userId underscore add postId / Likes to check like status in facebook

userId_post_Id / 좋아요 레코드를 가져올 좋아요

userId_post_Id / Comments to fetch Comments Records

    https://developers.facebook.com/tools/explorer/145634995501895/?method=GET&path=303261006522998_751199848395776%2FLikes&version=v2.9

    **In this link Right side Get Token indide GetAccessToken to select Permission**

여기에 이미지 설명 입력

    303261006522998_751199848395776/Likes
    303261006522998_751199848395776/Comments

{
  "data": [
    {
      "id": "124778301449917",
      "name": "Manisha Gera"
    },
    {
      "id": "1680577265523548",
      "name": "Rubi Sharma"
    }
  ],
  "paging": {
    "cursors": {
      "before": "MTI0Nzc4MzAxNDQ5OTE3",
      "after": "MTY4MDU3NzI2NTUyMzU0OAZDZD"
    }
  }
}

참고 URL : https://stackoverflow.com/questions/31353591/how-should-we-retrieve-an-individual-post-now-that-post-id-is-deprecated-in-v

반응형