kennylerma / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

UI Oauth versus Login #303

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The Facebook object is properly initialized (Facebook.init) and finds that 
the current machine is not logged in.

2. I try using the Facebook.ui call for the "oauth" protocol, which looks as 
such: 
Facebook.ui("oauth",data,redirectFunction,"iframe");

3. The proper UI iframe window appears, but never loads - I simply get an 
endless loading animation, not even an error.

What is the expected output? What do you see instead?
I expect to see the same login window that can be summoned using 
Facebook.login, only within the javascript iframe provided by Facebook.UI

What version of the product are you using? On what operating system?
I'm using the Flash CS5 IDE, on a Mac, but I've tested on PC and on multiple 
browsers and Facebook still does not load.

Please provide any additional information below.
Facebook.login works perfectly, but the window appears in a popup, and I cannot 
control its position, resulting in slightly jarring visual feedback. The 
Facebook.ui iframe Javascript window always appears sleek and centered, but the 
oauth protocol doesn't seem to work with the current Facebook.UI.

Could the problem be that the data object I'm submitting is missing a field? 
I'm submitting the following data object:
var data:Object = {method: 'oauth',
               client_id: APP_ID,
               redirect_uri: redirectURI,
               scope: permissionsRequested};

Or is Facebook.UI simply not going to support the iFrame oauth protocol?

Original issue reported on code.google.com by ort...@gmail.com on 13 May 2011 at 3:30

GoogleCodeExporter commented 9 years ago
It seems that "iframe" display oauth dialogs are not supported on Facebook, so 
they cannot be supported in the api.
http://forum.developers.facebook.net/viewtopic.php?id=97211
http://forum.developers.facebook.net/viewtopic.php?id=85694

Original comment by edwar...@gmail.com on 18 May 2011 at 5:35

GoogleCodeExporter commented 9 years ago
So it is! Indeed it is so.
This is a shame, but indeed not a fault of the API.
I stand corrected.

Original comment by ort...@gmail.com on 18 May 2011 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 19 May 2011 at 9:47