如何设置Facebook App api级版本?
How to set Facebook App api level version?
当我查看我的应用程序时,在 Facebook 开发人员控制面板中,我看到类似以下内容:
This app is public and available to all users
API Version: 2.4
App ID: ...
App secret: ...
如何设置 API 2.3 版?显示 2.4 的字段已禁用(变灰),因此我无法对其进行编辑。
你不能。 v2.4 是您的应用可以调用的最早版本。该值取决于应用程序的创建时间,您无法更改。
您不能将 API 级别设置为低于最低可用级别,但您可以(并且应该)设置其中一个可用级别。
This 页面有非常详尽的解释,包括您未指定 API 版本的最常见情况(无论是在调用中还是在您使用的 SDK 中):
What happens if I don't specify a version for an API?
We refer to this as an unversioned call. An unversioned call will
default to the oldest available version of the API. Consider this
hypothetical life cycle of API versions:
An unversioned call will always point to the oldest version still
available at the top of the chart. This is currently v2.1, but after
two years it'll be v2.2, then v2.3, etc.
Because of this, our recommendation is to always specify versions when
making calls, where possible.
When using the JavaScript SDK for Facebook you can't make unversioned
API calls.
当我查看我的应用程序时,在 Facebook 开发人员控制面板中,我看到类似以下内容:
This app is public and available to all users
API Version: 2.4
App ID: ...
App secret: ...
如何设置 API 2.3 版?显示 2.4 的字段已禁用(变灰),因此我无法对其进行编辑。
你不能。 v2.4 是您的应用可以调用的最早版本。该值取决于应用程序的创建时间,您无法更改。
您不能将 API 级别设置为低于最低可用级别,但您可以(并且应该)设置其中一个可用级别。 This 页面有非常详尽的解释,包括您未指定 API 版本的最常见情况(无论是在调用中还是在您使用的 SDK 中):
What happens if I don't specify a version for an API?
We refer to this as an unversioned call. An unversioned call will default to the oldest available version of the API. Consider this hypothetical life cycle of API versions:
An unversioned call will always point to the oldest version still available at the top of the chart. This is currently v2.1, but after two years it'll be v2.2, then v2.3, etc.
Because of this, our recommendation is to always specify versions when making calls, where possible.
When using the JavaScript SDK for Facebook you can't make unversioned API calls.