ashishkummar / facebook-actionscript-api

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

GraphAPI_Web_1_8_1.swc is not allowing a user to log in. #380

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there,

I am trying to use this API for web so that I can embed the swf in a canvas 
within Facebook.

The function handleLogin is not being called. I have followed the steps I took 
for when I did the same for both Desktop and Mobile. I had no issues with the 
Desktop or Mobile but I can not get this working in Web.

1. if the handleLogin is called it should trace "handleLogin"
2. Click the login button and you will see that it doesn't work.

These 2 calls do not work seem to work with the web swc

Facebook.init(APP_ID, handleLogin);

Facebook.login(handleLogin);

If a user is already logged in it should go to the 2nd frame of the fla file. 
If the user is not logged in, when the user clicks "Log In" they should be 
redirected to the second frame of the fla file.

What version of the product are you using? On what operating system?
Adobe Flash Professional CS5.5

Please provide any additional information below.

If this is broken please could this be fixed, if it is not a problem then if 
someone is able to help it would be much appreciated.

Thanks

Original issue reported on code.google.com by kassra.y...@comshen.com on 18 Nov 2011 at 2:21

Attachments:

GoogleCodeExporter commented 8 years ago
Forgot to say I'm using a Mac with Lion - latest update.

Original comment by kassra.y...@comshen.com on 18 Nov 2011 at 2:31

GoogleCodeExporter commented 8 years ago
Hi Kassra,

i have the same problem, is the facebook actionscript-api broken?!
Or do you have a solution of this problem?

sincerely yours

Original comment by kr...@redtree.de on 16 Dec 2011 at 11:11

GoogleCodeExporter commented 8 years ago
Hi there, I have some good news, I got mine working. It wasn't obvious to me 
that the only way you can test it properly is to put it into a facebook canvas. 
What you should do is create an app on developers.facebook.com and then have a 
hosting area. (facebook will recommend that you could use heroku if you dont 
have your own webspace). It has to be a https connection.

You need to embed the as file in this structure (see attached).

Hope that helps.

Original comment by kassra.y...@comshen.com on 16 Dec 2011 at 11:24

Attachments:

GoogleCodeExporter commented 8 years ago
I believe this has to do with recent updates that Facebook did to the JS API. 
It now only supports OAuth 2.0...
You can read more about it here:
https://developers.facebook.com/blog/post/615/

Original comment by burgos...@gmail.com on 16 Dec 2011 at 11:24

GoogleCodeExporter commented 8 years ago
Hey there,

thank you for the answers!!!

I tryed to use your scripts, but i always become an error...

I  have create an app, i set my app id, is set my secure canvas url ....
But i dont get a success...

I dont find the problem.

My files are attached, perhaps you can find my error :/

sincerely yours

Original comment by kr...@redtree.de on 16 Dec 2011 at 12:04

GoogleCodeExporter commented 8 years ago
...

Original comment by kr...@redtree.de on 16 Dec 2011 at 12:05

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
it is not working for me either

Original comment by superma...@gmail.com on 7 Feb 2012 at 10:13

GoogleCodeExporter commented 8 years ago
The sample is not working as well. 

Original comment by superma...@gmail.com on 8 Feb 2012 at 5:14

GoogleCodeExporter commented 8 years ago
Hey there,

try this, it works perfectly for me!

Original comment by kr...@redtree.de on 9 Feb 2012 at 9:50

Attachments:

GoogleCodeExporter commented 8 years ago
Same issue... when i want to login in facebook using raphAPI_Web_1_8_1.swc
login failed: and error message is:  An active access token must be used to 
query information about the current user.

even i tried "FlashDesktopExample", and dnt able to login

please help.

Original comment by vijay.na...@anktech.co.in on 18 Oct 2013 at 12:17