Facebook ActionScript API Broken

150 views
Skip to first unread message

Ben Longoria

unread,
Aug 8, 2012, 2:47:59 PM8/8/12
to facebook-act...@googlegroups.com
Just this morning the Facebook ActionScript API stopped working for us.
Both 1.7 and 1.8.1 versions.

Anyone have any information on this?

There is an issue filed here by someone else affected:

Thanks,
Ben

Khaled Garbaya

unread,
Aug 8, 2012, 3:21:04 PM8/8/12
to facebook-act...@googlegroups.com, facebook-act...@googlegroups.com
I noticed also that the popup when authorizing the app is blocked by the browser even with a user action !

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "facebook-actionscript-api" group.
To view this discussion on the web visit https://groups.google.com/d/msg/facebook-actionscript-api/-/3vWTyokaeagJ.
To post to this group, send email to facebook-act...@googlegroups.com.
To unsubscribe from this group, send email to facebook-actionscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/facebook-actionscript-api?hl=en.

HeKe

unread,
Aug 9, 2012, 2:11:53 AM8/9/12
to facebook-act...@googlegroups.com
I've notice that "FBAS.getAuthResponse" (JS method used by AS3 API) returns an empty object.
Its probably because facebook is cleaning its JS library...

You can get the access token and uid from login callback.

Good luck
Eldad

mike

unread,
Aug 9, 2012, 9:30:59 AM8/9/12
to facebook-act...@googlegroups.com

We also noticed this, the major issue we found was the the getAuthResponse() method in the Facebook.as file is no longer returning good data, everything was null.

But we also worked around this by just using the data in the callback from the Facebook.init() call.

function doInit(appId:String):void {
Facebook.init(_appId, onFacebookInit, {cookie:true,status:true,oauth:true});
}

function onFacebookInit(success:Object, failure:Object):void {
if(success) {
_uid = success.uid;
_accessToken = success.accessToken;
}
}


Here we are saving away the uid and access token from the success call and not trying to access it from Facebook.getAuthResponse()

This got our application back up and authorizing properly.

Mike

mike

unread,
Aug 9, 2012, 1:45:00 PM8/9/12
to facebook-act...@googlegroups.com
I posted a reply that never showed up. The issue we saw is the Facebook.getAuthResponse(). It is returning null data, whereas previously the FacebookAuthResponse object had the access token and uid.  We are now using the success object from Facebook.login() or Facebook.init() to gather these values.


On Wednesday, August 8, 2012 1:47:59 PM UTC-5, Ben Longoria wrote:

Alan

unread,
Aug 9, 2012, 1:51:28 PM8/9/12
to facebook-actionscript-api
Mike, the reason your reply never showed up is because I moderate the
newsgroup and make sure it isn't filled with spam. The first time
anyone posts to the group, their message is held in a queue until it
is approved. Thereafter, anyone whose first message is approved won't
be held back with any subsequent messages.

I don't moderate based on opinions or anything. I just want to make
sure that what you are talking about is relevant to this group.

Alan

mike

unread,
Aug 9, 2012, 1:54:47 PM8/9/12
to facebook-act...@googlegroups.com
Ok, I thought that it possibly was lost, thanks!
Reply all
Reply to author
Forward
0 new messages