Facebook drops legacy auth and breaks logins

If you see the following error in your console

Uncaught Error: OAuth2 specification states that 'perms' should now be called 'scope'. Please update.

Then the service has yet to upgrade to OAuth 2.0 and is broken :(. You can migrate to OAuth 2.0 by following these instructions

On the plus side I bet there will be a lot of freelance jobs to fix this issue :P

edit (1/10/2012) 

I finally got around to updating one of my legacy apps to the new spec, there were only a few things i had to change (i got most of this from this blog post)

  • update my fbID to the new one
  • remove FB.getSession() calls and pull the userID from response.authResponse.userID
  • update the FB.init method to look like this FB.init({appId: '123', status: true, cookie: true, xfbml: true, oauth: true});

after making these changes this fixed all of the issues i was having!