Search code examples
facebookfacebook-graph-api

How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?


I just tried through the Graph API Explorer with this path /v2.4/10153513872748291 and I've got this result:

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

But https://developers.facebook.com/docs/reference/api/post/ doesn't say anything about deprecation.

I'm not sure if I miss something, or there's another way to get info about an individual post.

Edit: v2.3 works, but v2.4 is the latest one.


Solution

  • Looks like you now need to the combination of the id of the user or page that made the post (or whose wall it is on), an underscore, and then the post id.

    For your example post, 10153513872748291, that is made by a page Drama-addict, that has the id 141108613290 – so 141108613290_10153513872748291 will work.

    And so does 788239567865981_10153513872748291, because 788239567865981 is the id of the user making the post.