什么时候Facebook不赞成使用JavaScript SDK? [英] When is Facebook deprecating the JavaScript SDK?

查看:114
本文介绍了什么时候Facebook不赞成使用JavaScript SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Facebook开发人员论坛上询问过,但没有人回答,所以以为我会在Stack上问。



我已经一个与Facebook Connect集成的网站,使用OAuth进行身份验证。但是我有一些代码可以利用 JavaScript SDK



我听说JavaScript SDK已被弃用,并且/或通过JavaScript SDK进行身份验证已被弃用。



任何人都可以: / p>


  • 确认上述声明是否真实

  • 提供一个链接,其日期为不赞成

  • 告诉我错误



编辑



对于任何对于为什么仍然使用JavaScript SDK而感到好奇的人,请参阅我的其他Stack问题



简而言之,这不能用OAuth / Graph API来实现:

  FB.getLoginStatus(function(response){
if(response.status =='connected') {
//无缝地进行单一登录。
}
}


解决方案

非常清楚,我们并不否认 JavaScript SDK 。这是留在这里。我们正在将其更改为依靠 OAuth 2.0 ,但是使用起来也是一样简单。如果您今天使用 access_token ,那么更改将会很小(主要用 authResponse.accessToken 一旦更新的JS SDK出来)。如果您依靠 session_key secret 并使用基于md5签名的调用,那么您有一些迁移要做,因为这些将在仅OAuth 2.0的世界中消失。


I've asked this on the Facebook Developer Forums, but no-one is answering, so thought i'd ask it on Stack.

I've got a website which integrates with Facebook Connect using OAuth for authentication. But i have some code which leverages the JavaScript SDK.

I have heard that the JavaScript SDK is being deprecated and/or authentication via the JavaScript SDK is being deprecated.

Can anyone:

  • Confirm if the above statement is true
  • Provide a link giving the date that it is to be deprecated
  • Tell me im wrong

EDIT

For anyone who is curious as to why i still use the JavaScript SDK, see my other Stack question for the reasoning.

In short, this cannot be done with OAuth/Graph API:

FB.getLoginStatus(function (response) {
   if (response.status == 'connected') {
      // do single sign on, seamlessly.
   }
}

解决方案

To be very clear, we are not deprecating the JavaScript SDK. It's here to stay. We are in the process of changing it to rely on OAuth 2.0, but it will be just as simple to use. If you use access_token today, then the changes will be minor (largely replace session.access_token with authResponse.accessToken once the updated JS SDK is out). If you rely on session_key and secret and use md5 signature based calls, then you have some migrating to do since those will go away in the OAuth 2.0 only world.

这篇关于什么时候Facebook不赞成使用JavaScript SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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