Skip to main content
November 28, 2011
Answered

Facebook???

  • November 28, 2011
  • 3 replies
  • 985 views

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 has been closed for replies.
Correct answer

same issue here. this sdk sucks.

3 replies

Inspiring
November 30, 2011

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

Correct answer
November 28, 2011

same issue here. this sdk sucks.

November 28, 2011

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?