kennylerma / facebook-actionscript-api

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

FacebookDesktop Never Gets Access Token #244

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place breakpoint on line 361 of FacebookDesktop.as
2. Call FacebookDesktop.init("<YOUR APP ID>", <YOUR CALLBACK>);
3. Observe there is no access token.  
4. In handler, observe failure reflecting this fact.

What is the expected output? What do you see instead?
I expect to see an access token.

What version of the product are you using? On what operating system?

Please provide any additional information below.
If an lso hasn't been set with the access token, authentication routines must 
first call https://graph.facebook.com/oauth/authorize?client_id=<YOUR APP 
ID>&redirect_uri=<YOUR REDIRECT URI>.  URL variable 'code' will be present in 
redirect_uri when the user allows.  URL variable 'code' is the access token.  
Without xAuth, Facebook API users can't skip this step. 

Original issue reported on code.google.com by mbritto...@gmail.com on 17 Jan 2011 at 6:32

GoogleCodeExporter commented 9 years ago
Important Note: I am using Flex / AIR for mobile Android, which doesn't have 
support for HTMLLoader.

Original comment by mbritto...@gmail.com on 17 Jan 2011 at 7:18

GoogleCodeExporter commented 9 years ago
If you're building for mobile. You should be using the mobile API 
(FacebookMobile.as). However, FacebookDesktop should still work when debugging 
in Flex. If you haven't logged in before, and FacebookDesktop.manageSession = 
true (which it is by default), then receiving no access token is expected. It's 
only when you log on to your application for the second time, will you receive 
an access token.

Original comment by rovertn...@gmail.com on 20 Jan 2011 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 6 Oct 2011 at 5:50