freshplanet/ANE-Facebook

Auto-connect at startup without calling openSessionWithReadPermissions

UmberFunk opened this issue · 6 comments

Hello again,

After LOTS of tests I managed to to make 2 versions of ANE-Facebook work:

  1. wastedabuser's version. Sadly it hasn't IOS support, but on Android after app restart the session is still open after init.
  2. Commit of master by shinyamos. It supports both platforms but after restarting app, Facebook isSessionOpen is false, unlike version of wastedabuser. That's very bad because this way a user will see a black splashscreen at every app start.

Is there any way to make commit from master (2) to start with opened session?

Now I'll test versions by FreshTiti made for Songpop

AT LAST!!!
Found a version that work as it should! Mega BIG thanks to @FreshTiti !!! :)

I want to get facebookId, but I can not get.

@anylxl I'll try to help if you tell me more details.

I want to get gamers facebook Id, I can not get, I tried many other methods.
Example
requestWithGraphPath ("/ me", null, "GET", requesetWithGraphPathHandler)

try this:

Facebook.getInstance().requestWithGraphPath("me",null,"GET",facebookIDRecieved1);
function facebookIDRecieved1(obj:Object):void {
var name:String = obj.name;
var id:Number = obj.id;
}
So you can display a var id in a textfield, for example textfield.text = id;

@deccosantos You are right. "me" and not "/me"
"me" - Data about you.
"me/friends" - Friends who are already joined your game with Facebook. You can send them game requests (send gift, request to send something etc.)
"me/invitable_friends" - Friends whom you can send game requests (invites). After joining, they jump to friends.