开发者

When is Facebook deprecating the JavaScript SDK?

开发者 https://www.devze.com 2023-03-17 19:20 出处:网络
I\'ve asked this on the Facebook Developer Forums, but no-one is answering, so thought i\'d ask it on Stack.

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.


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/


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号