Facebook的图形API版本过期 [英] Facebook graph API version expires

查看:537
本文介绍了Facebook的图形API版本过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了在C#中使用的FacebookClient类的应用程序。如果这FacebookClient的版本是7.0.6。首先,这是我第一次使用Facebook图形API,很抱歉,如果我问基本问题:)



当我去到developers.facebook应用程序I看到包含以下文本的警告:





当我使用的FacebookCient类,然后我没有指定任何版本的Get方法。该FacebookClient的版本属性为空,当我读到它



所以我的问题是:




  1. 不应该的FacebookClient类时没有指定版本自动使用最新版本的图形API的?它看起来像它使用2.0版甚至thoug V2.6是最新的。

  2. 如何确保它总是使用最新版本的可能吗?

  3. 因为我还没有与Facebook的API,这么多的经验,什么是处理这个?

  4. 的首选方法,我可以通过版本属性设置为如使用特定版本V2.6或获得(/ V2.6 / someCall)?


解决方案

您可以忽略该警告,有一个开放的bug这个: HTTPS://developers.facebook。 COM /错误/ 1634445133540643 /



如果你忽略了的版本,它将使用应用程序,而不是最新版本的API版本。 。总是汇入作业的最新一个,如果你创建一个新的应用程序,但它不会自动升级



顺便说一下,有一个升级工具:的 https://developers.facebook.com/tool​​s/api_versioning/


I have developed an application in C# that uses the FacebookClient class. The version if this FacebookClient is 7.0.6. First of all it is the first time i use the facebook graph api, so sorry if i ask basic questions :)

When i go to the application in developers.facebook i see a warning containing the following text:

When i use the Get method on the FacebookCient class then i am not specifying any version. The Version property of the FacebookClient is null when i read it.

So my questions are:

  1. Shouldnt the FacebookClient class automatically use the latest version of the graph API when no version are specified? It looks like it uses v2.0 even thoug v2.6 is the newest.
  2. How can i make sure that it always uses the newest version possible?
  3. Since i havent so much experience with the facebook api, what is the prefered way to deal with this?
  4. Can i use a specific version by setting the Version property to e.g. "v2.6" or .Get("/v2.6/someCall")?

解决方案

You can ignore the warning, there is an open bug for this: https://developers.facebook.com/bugs/1634445133540643/

If you omit the version, it will use the API version of the App, not the latest version. It´s always the latest one if you create a new App, but it will not upgrade automatically.

Btw, there is an upgrade tool: https://developers.facebook.com/tools/api_versioning/

这篇关于Facebook的图形API版本过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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