- Basic approach is to do a project-wide search for
FB.and do the below: - add
oauth: truetoFB.initcall - in the response from
FB.login,FB.getStatus, etc., changesessiontoauthResponse. It will be null if they user didn't allow, as withsession. - replace all use of the terms
permswith the termscope - Doesn't look like we can check permissions in the response?
- Update all
FB.event.subscribecalls listening for events withsessionin the name to listen for equivalentauthResponseevents. session.uidis nowauthResponse.userIDsession.access_tokenis nowsession.accessToken- whereas previously, when authenticating and making an API call on a subsequent page, the API call seemed to work immediately, with the access token passed along. This does not appear to be the case anymore - all API calls that require auth should be within an
FB.loginorFB.checkLoginStatuscallback.
- change
FB.Canvas.setAutoResizetoFB.Canvas.setAutoGrow
- If used in Rails 3.1, should be updated to the development branch:
gem "koala-rails", git: 'https://github.com/stevenh512/koala-rails.git', branch: 'development' - If used in Rails 3.0 use my fork:
git://github.com/dleavitt/koala-rails.git - Explicitly state Koala dependency:
gem 'koala', ' >= 1.2.0'
- Make sure bundled version is at least 1.2
- Use my version:
https://github.com/dleavitt/eukaliptus/ - Don't use any of the view helpers.
- Upgrade to version 3.1 of the SDK, available here: https://github.com/facebook/php-sdk/zipball/v3.1.1
- Call to
->getSession()should be removed, as that function doesn't exist in the new SDK. It doesn't look like there's any equivalent.
- Upgrade to the most recent AS3 SDK http://code.google.com/p/facebook-actionscript-api/
- Otherwise similar to using JS:
-- Pass
oauth: trueto the init method. -- Switchpermstoscope-- Update listeners, etc.
- http://developers.facebook.com/docs/reference/javascript/
- http://developers.facebook.com/docs/oauth2-https-migration/
- http://blog.straylightrun.net/2011/09/19/facebook-upgrading-to-oauth-2-0/
- http://www.fb-developers.info/blog/2011/relationship-between-encrypted-access-token-and-oauth-2-0/
- http://developers.facebook.com/blog/post/534/
- http://developers.facebook.com/blog/post/503/