既然/[post-id] 在 v2.4 中已被弃用,我们应该如何检索单个帖子? [英] How should we retrieve an individual post now that /[post-id] is deprecated in v2.4?

查看:28
本文介绍了既然/[post-id] 在 v2.4 中已被弃用,我们应该如何检索单个帖子?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用此路径/v2.4/10153513872748291 尝试通过 Graph API Explorer,我得到了这个结果:

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
  }
}

但是 https://developers.facebook.com/docs/reference/api/post/ 没有说明弃用.

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.

v2.3 有效,但 v2.4 是最新版本.

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

推荐答案

看起来您现在需要将发布帖子的用户或页面的 ID(或帖子所在的墙)、下划线和然后是帖子 ID.

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.

对于您的示例帖子,10153513872748291,它是由页面 Drama-adding 制作的,其 id 为 141108613290 – 所以 141108613290_10153513872748291 会起作用.

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

788239567865981_10153513872748291也是如此,因为788239567865981是发帖用户的id.

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

这篇关于既然/[post-id] 在 v2.4 中已被弃用,我们应该如何检索单个帖子?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆