Forum QuickConnect facebookOAuthConnectPopup problem with v2.2.2

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

facebookOAuthConnectPopup problem with v2.2.2

Postby cjcenizal » May 31st, 2011, 11:31 pm

If I leave the partnerId argument as an empty string (e.g. ""), the new window opens up, and shows me this error: "An error occured, please try again."

The url it's connecting to is:

http://atomicarmiestest-onzleprqpkczvlo ... ayz6GHWwyk

If I set the partnerId to something like "test", the problem doesn't occur. The code I'm using to connect is:

Code: Select all
PlayerIO.quickConnect.facebookOAuthConnectPopup(
   stage,
   GAME_ID,
   "_blank",
   [],
   NetVars.PARTNER_ID,
   handleFacebookConnection,
   handleError
);
cjcenizal
Paid Member
 
Posts: 115
Joined: March 29th, 2011, 12:31 am

Re: facebookOAuthConnectPopup problem with v2.2.2

Postby Benjaminsen » June 1st, 2011, 8:23 am

Woops, seems like there is a bug in FacebookConnectPopup that prevents it from accepting empty strings as partnerid.

You can fix it by parsing in null when the value is empty. IE:
Code: Select all
PlayerIO.quickConnect.facebookOAuthConnectPopup(
   stage,
   GAME_ID,
   "_blank",
   [],
   NetVars.PARTNER_ID || null,
   handleFacebookConnection,
   handleError
);
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup problem with v2.2.2

Postby cjcenizal » June 1st, 2011, 8:46 am

Thanks!
cjcenizal
Paid Member
 
Posts: 115
Joined: March 29th, 2011, 12:31 am

Re: facebookOAuthConnectPopup problem with v2.2.2

Postby Henrik » June 17th, 2011, 2:45 pm

This little weird bug is now fixed.
Henrik
.IO
 
Posts: 1880
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect



cron