如何在v2.4中不推荐使用/ [post-id]? [英] How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?
问题描述
{
error:{
message:(#12)版本v2.4及更高版本不推荐使用单一链接API,
type:OAuthException ,
code:12
}
}
但是 https://developers.facebook.com/docs/reference/api/post/没有任何关于弃用的信息。
我不知道我是否想念某个东西,或者有另一种获取个人信息的方式。
编辑:v2.3作品,但v2.4是最新的。
看起来您现在需要将发布的用户或页面的ID(或者是其墙壁)的组合,下划线,然后是帖子ID。
对于您的示例帖子, 101535138727482 91
,这是由页面 Drama-addict
,其ID为$ code> 141108613290 - 所以 141108613290_10153513872748291
将会工作。
788239567865981_10153513872748291
,因为 788239567865981
是发布用户的ID。
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.
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.
这篇关于如何在v2.4中不推荐使用/ [post-id]?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!