Forum QuickConnect Error using Kongregate QuickConnect

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Error using Kongregate QuickConnect

Postby mattdown » June 14th, 2011, 4:44 pm

Hi,

I'm trying to connect my users via Kongregate QuickConnect, but I get this error back from playerIO: " Error: Error authenticating against Kongregate: Invalid credentials". But when I trace the userId and gameAuthToken they give plausible results. I'm not sure what else to do to debug this, I've enabled kongregate quickConnect in the admin panel and entered the API URL. I currently have my game in preview mode on Kongregate. I should still be able to connect right?

Thanks,
Matt
mattdown
Paid Member
 
Posts: 12
Joined: October 27th, 2010, 11:20 am

Re: Error using Kongregate QuickConnect

Postby Henrik » June 14th, 2011, 5:02 pm

What do you get when you go to http://www.kongregate.com/api/authentic ... key=ghijkl, but substitute in your actual userid, game auth token, and api key?

That's the server-to-server call QuickConnect does, so make sure your parameters are correct, and that you've entered the api key correctly in your quickconnect setup.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm

Re: Error using Kongregate QuickConnect

Postby mattdown » June 14th, 2011, 5:47 pm

Cheers,

For some reason I thought you had to enter the URL of the api and not the api key itself. So that's fixed it.

Thanks,
Matt
mattdown
Paid Member
 
Posts: 12
Joined: October 27th, 2010, 11:20 am

Re: Error using Kongregate QuickConnect

Postby khanahmed_95@hotmail.com » April 1st, 2012, 11:17 pm

it gives me the same error. but when i went on that thing it gave me this

{"success":true,"username":"BlackDarksector","user_id":5291359}

I just made a simple thing where it just writes works if it is successful

HERE IS MY CODE:
//all this function is sapposed to do is write worked if it got connected

function connect(userid:String, token:String){
//Player.IO game id
var gameid:String = "mygame-vi1216t6quac7bd1dowziq";

//Connect to Player.IO
PlayerIO.quickConnect.kongregateConnect(
stage,
gameid,
userid,
token,
function(client:Client){
a.text = "works";
}, function(e:PlayerIOError){
a.text = e + "";
trace("Error: ", e)
}
);
}

//and i added this to the loadComplete function when u connect to kongregate

var userid:String = kongregate.services.getUserId();
var token:String = kongregate.services.getGameAuthToken();

connect(userid, token);//the connect function is shown above

Thanx,
khanahmed_95@hotmail.com
 
Posts: 9
Joined: November 21st, 2011, 3:07 am

Re: Error using Kongregate QuickConnect

Postby khanahmed_95@hotmail.com » April 14th, 2012, 10:43 pm

nvm i fixed it
khanahmed_95@hotmail.com
 
Posts: 9
Joined: November 21st, 2011, 3:07 am


Return to QuickConnect



cron