ashishkummar / facebook-actionscript-api

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

Facebook.login calls callback with results and fail = null, permission dialog is also incorrect #386

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. not yet authorized app
2. Facebook.init(API, callback)
3. callback -> if it is not logged in (result == null) 
FacebookAPI.login(callback2, {scope:'email'} );

What is the expected output? What do you see instead?
The oauth dialog appearing, and once you have confirmed or cancelled a call to 
callback2 with either result or fail parameter setted.
But result & fail are both null and the callback is called even before the 
oauth dialog is completely shown, but what is even worse the oauth dialog do 
not ask for the permissions that you have especified so it is impossible for 
your application to work correctly.

What version of the product are you using? On what operating system?
Facebook Flash API 1.8.1  
FlashPlayer 11
Firefox 8.0.1
Windows XP SP3

Please provide any additional information below.
The solution was to do the login with javascript in the index.html, there is an 
example in the examples directory 
http://code.google.com/p/facebook-actionscript-api/source/browse/trunk/examples/
Embedding/index%20(using%20js%20login).html

Original issue reported on code.google.com by i...@infinityk.com on 29 Nov 2011 at 1:03