0

How can I get the post details from a PostId.

I have noticed that the Faceboook graph API documentation, Facebook Graph API

Find the post details by using the below path, Post /{post-id}

It gets an error,

{
  "error": {
    "message": "Unknown path components: /{post-id}",
    "type": "OAuthException",
    "code": 2500,
    "fbtrace_id": "AcvdFFnlb1S"
  }
}

I am using the facebook graph api explorer

Vineesh TP
  • 7,755
  • 12
  • 66
  • 130
  • You need to use the “full form”, that combines the posting person/profiles id and the post id, https://stackoverflow.com/a/31354218/1427878 – CBroe Jun 20 '17 at 07:46
  • @CBroe : not worked, same issue again . "Unknown path components: /user_id}_{post_id}" – Vineesh TP Jun 20 '17 at 16:33
  • Please show the exact request you are making. And also, where did you get the post id from in the first place? – CBroe Jun 20 '17 at 17:48
  • @CBroe : I am likely to get the post details by using the graph API , https://graph.facebook.com/Post/681727415232133_1580395018698697 – Vineesh TP Jun 21 '17 at 08:50
  • 1
    What is `/Post/` doing in there? You want `https://graph.facebook.com/681727415232133_1580395018698697` – CBroe Jun 21 '17 at 08:52
  • @CBroe : In facebook API documentation, there is an api like Post/{post_id} – Vineesh TP Jun 21 '17 at 10:08
  • It does not say anywhere that this was an API request path ... that is just the headline of the page, that shows that this is about the `Post` object type, and that those are accessed via `/{post-id}` – CBroe Jun 21 '17 at 10:57
  • @CBroe: Thank you. Then, By using this only get the story,Id and time.. How can I get the post whole details. – Vineesh TP Jun 22 '17 at 03:30
  • Since API v2.4, you need to ask for the fields you want. – CBroe Jun 22 '17 at 07:29

0 Answers0