Skip to main content
Nov 28, 2011 3:07 PM UTC
Answered

Facebook???

OK, I am still having many issues with the Facebook AS3 API. Is there anyone who is currently able to use the Mobile version of the API to logon and process Facebook Graph calls? I keep getting this cryptic html error returned, when trying to login: error on line 2 at column 212: EntityRef: expecting ';'

import com.facebook.graph.FacebookMobile;

var a:StageWebView = new StageWebView();

a.viewPort = new Rectangle(0,0,400,400);

FacebookMobile.init("195742627174657", initHandler);

function initHandler(result:Object, fail:Object):void

{

    trace("initHandler",result, fail);

    FacebookMobile.logout(logoutCallback);   

}

function logoutCallback(res:Object):void

{

    trace("logoutCallback",res);

    FacebookMobile.login(loginCallback, this.stage, [], a);

}

function loginCallback(res:Object):void

{

    trace("logincallback",res);

}

That's the simple code I am testing with. I init ok, then call logout, which comes back true. But I call login and get the entityRef error returned. Anyone? Really need to get this working...

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Nov 28, 2011 8:01 PM UTC

same issue here. this sdk sucks.

3 replies

Inspiring
Nov 30, 2011 3:02 AM UTC

Only thing I can think of - and excuse me if it's not at all feasible - is to write a native extension that utilizes the Java facebook SDK for Android (which I'm guessing has no major bugs).

I really don't know much of how to go about that, but if you could pull it off that would be a pretty useful piece of code

Translate
Correct answer
Nov 28, 2011 8:01 PM UTC

same issue here. this sdk sucks.

Translate
Nov 28, 2011 9:04 PM UTC

I had to give you the correct answer - because you're spot on correct - this SDK sucks. And no acknowledgement on when they might fix it. This is currently a total show stopper for me as I don't know another way to get facebook support in a Android App made with Flash.

Anyone suggest alternatives?

Translate