Facebook 图 API 升级

Facebook Graph API Upgrade

我在网站上工作,该网站有一个旧的 facebook API 实现,Facebook SKD 用于 PHP。我无法将 SDK 更新到更新版本,因为它需要 PHP 5.4,这个项目在 5.3 下工作,所以我不得不使用旧版本。 我可以访问 API 升级工具,它向我展示了很多我应该修复的方法,例如 GET /posts 假设我想升级到 v2.4 并且我使用 link 来找出该请求中发生了什么变化。我发现了什么:

Deprecated Fields

As of April 18, 2017, the following parameters are no longer supported by Graph API versions 2.9 and higher. For versions 2.8 and lower, the parameters will continue working until July 17, 2017.

The link field is still supported, but its sub-fields have been deprecated.

我觉得自己很愚蠢,但我无法意识到 我应该使用什么来代替 link 字段,因为它将在 17 日被弃用七月?

what should I use instead of link field after it will be deprecated on 17th July?

link 参数本身并没有被弃用;只有 "sub fields" 允许您动态覆盖标题、说明、描述和缩略图。

此数据现在完全取自 URL 发布 returns 的 Open Graph 元标记。 (除了一个例外,对于页面帖子,仍然可以至少指定要动态使用的图像。)