Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

facebook - 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.

Question&Answers:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Looks like you now need to the combination of the id of the user or page that made the post (or who’s 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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...