Forum General General Question

Any issues or discussions relating to Flash development are welcome here.

General Question

Postby khizar mahmood » February 18th, 2017, 4:50 am

Hey guys, Any of you know about what code they are asking? Its not the accesstoken some kind of new token.
Attachments
Screenshot_3.png
Screenshot_3.png (7.11 KiB) Viewed 10190 times
khizar mahmood
 
Posts: 3
Joined: November 30th, 2016, 1:01 pm

Re: General Question

Postby Henrik » February 18th, 2017, 7:40 pm

What does your call to Authenticate look like? Are you passing in the Facebook user access token for the user?

https://playerio.com/documentation/serv ... n/facebook
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: General Question

Postby khizar mahmood » February 19th, 2017, 3:09 am

yes i need a access token like this one '' a21e0563f04c49dd412ab12e31cfa89684f74e34691a76bcb5ee57428aabbfb0 ''.
khizar mahmood
 
Posts: 3
Joined: November 30th, 2016, 1:01 pm

Re: General Question

Postby Henrik » February 19th, 2017, 4:14 am

Do you have problems getting Facebook user access tokens?

Or do you have problems passing those into PlayerIO authenticate?
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm

Re: General Question

Postby khizar mahmood » February 25th, 2017, 12:08 am

yes i have problems passing those into PlayerIO authenticate?
khizar mahmood
 
Posts: 3
Joined: November 30th, 2016, 1:01 pm

Re: General Question

Postby Henrik » February 25th, 2017, 12:42 am

You need to do something like this in AS3:

Code: Select all
private var client:Client;

PlayerIO.authenticate(this.stage, "game_id_goes_here", "public", { accessToken:"access_token_goes_here" }, null, function(c:Client):void{
   client = c;
   log("Authenticated: " + client.connectUserId);
}, function(error:PlayerIOError):void{
   log("Authenticate error: " + error.message);
});
Henrik
.IO
 
Posts: 1832
Joined: January 4th, 2010, 1:53 pm


Return to General



cron