When is Facebook deprecating the JavaScript SDK?

我是研究僧i 提交于 2019-12-13 14:15:39

问题


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

回答1:


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.




回答2:


Migration to OAuth 2.0 + HTTPS timeline:

  • July 1: Updates to the PHP and JS SDKs available that use OAuth 2.0 and have new cookie format (without access token).
  • September 1: All apps must migrate to OAuth 2.0 and expect an encrypted access token.
  • October 1: All Canvas apps must process signed_request (fb_sig will be removed) and obtain an SSL certificate (unless you are in Sandbox mode). This will ensure that users browsing Facebook over HTTPS will have a great experience over a secure connection.

http://developers.facebook.com/blog/post/497
http://developers.facebook.com/docs/authentication/connect_auth/




回答3:


The older SDK is already deprecated but will be available for you to use. But you should really think about migrating to the new SDK.

Currently the latest PHP-SDK is out of sync in terms of authentication implementations with JS; they will be rolling out few changes to both of the SDK's in the near future to unify some of the routines.




回答4:


The current javascript SDK definitely isn't being deprecated. Perhaps they will deprecate the old Facebook connect javascript, but they haven't announced a date. The best place for deprecation dates is the Facebook developer roadmap.



来源:https://stackoverflow.com/questions/6591960/when-is-facebook-deprecating-the-javascript-sdk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!