Facebook Javascript Update / OAuth 2.0 Requirement breaking login pop-up?

In their December 2011 changes to the Javascript SDK, Facebook has caused certain websites using the AS3 API to break. The issue arises with the login pop-up window no longer appearing when Facebook.login is called.

The problem lies within the perms parameter used in Facebook.login. You must now use scope instead.

var opts:Object = {scope:"publish_stream, user_photos, create_event"};
Facebook.login(onResult, opts); 

This solve was found at the facebook-actionscript-api Google Code group. Thanks guys!

Leave a Reply