Forum QuickConnect facebookOAuthConnectPopup error

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

facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 11:54 am

The below function throws error:
Code: Select all
PlayerIO.quickConnect.facebookOAuthConnectPopup(
            this.stage,
            gameId,
            "_blank",
            [],
            null,                  //Current PartnerPay partner.
            _OnFBConnectionSuccess,
            _OnFBConnectionFailure
         );


There are lot more traces in the output other than below. Please let me know if posting the other traces would help.

I see this error in between the traces:

81:getslot 1 stack: flash.display::Stage?
83:getproperty stage stack: flash.display::Stage?
85:pushnull stack: flash.display::Stage? null
86:equals stack: Boolean
87:convert_b
B88: stack: Boolean
88:iffalse 102 stack:
92:findpropstrict Error stack: global
94:pushstring "Parsed stage is not attached to document stage" stack: global String

When the QuickConnect method is called, I see that the trace(stage) is not null and trace(stage.getChildAt(0)) gives me my Document class instance.


Thanks for the help
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby Benjaminsen » February 11th, 2013, 2:39 pm

I think you are trying to call PlayerIO.quickConnect.facebookOAuthConnectPopup inside an object that has yet to be attached to the stage. E.g. in the constructor for a class.

Alternatively you are trying to pass in a non document stage such as a Starling Stage reference. You must provide the topmost flash.display.Stage object.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 2:56 pm

Ok, Actually I tried running the Seedlings example code as well. And that doesn't work either.
I have not made any changes to the Seedlings code.

The exception message that I see at the end is : Error #1068: Array and * cannot be reconciled.

Frankly, the trace messages posted earlier is a very small section of the traces that I see in the output. It looks more like a pseudo code kinda thing to me. Please let me know if I should post the entire trace
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby Benjaminsen » February 11th, 2013, 3:05 pm

Can I get you to try the following code, which I just tested successfully

Code: Select all
var gameid:String = "..."
PlayerIO.quickConnect.facebookOAuthConnectPopup(
   stage,
   gameid,
   "_blank",
   [],
   "",
   function(c:Client, token:String, userid:String):void{
      trace("now connected",c)
   }, function(e:PlayerIOE):void{}
)


If this does not work, try downloading the newest version of the API
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 3:19 pm

I downloaded the SDK from the link on the homepage. The PlayerIO files used in the seedlings example are updated last 25th April 2012. Is there any other place for downloading the latest SDK?

Also, I don't have a type called "PlayerIOE" in my playerio classes.
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 3:47 pm

So, Am I using the right API?
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 4:41 pm

Hey Benjaminsen,

I started from scratch:

1. Created a new Facebook app
2. Created a new game in my playerio account
3. Configured the playerio game with QuickConnect, Sitebox etc
4. Opened the facebook app from apps.facebook.com/<my game> and it opens the Seedlings example correctly
5. Now, I download the SDK from your downloads section and run the Seedlings example. It again throws the same error and the traces on facebookOAuthConnectPopup function call.
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby playzio » February 11th, 2013, 7:49 pm

When you follow the steps I stated, are you not facing the same issue?
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby Benjaminsen » February 15th, 2013, 1:19 pm

playzio wrote:When you follow the steps I stated, are you not facing the same issue?


Attached is a project I just build from scratch, does that work for you?
Attachments
FacebookOAuthPopup.zip
(66.5 KiB) Downloaded 1365 times
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup error

Postby playzio » February 15th, 2013, 4:51 pm

Thanks a lot for getting back. I will try your sample asap. As of now, we have unblocked ourselves by using the access token with facebookOAuthConnect
playzio
Paid Member
 
Posts: 20
Joined: January 29th, 2013, 12:19 pm

Re: facebookOAuthConnectPopup error

Postby TharosTheDragon » March 9th, 2013, 3:59 am

I'm having the same problem with facebookOAuthConnectPopup. It traces over 500 messages into the output window starting with:

verify bridge::QuickConnect/facebookOAuthConnectPopup()
exception[0] from=545 to=559 target=563 type=Error name=e

And after all that the error handler in my code traces the error as "Error #1068: Array and * cannot be reconciled." There must be some problem with the Player.IO code where it tries to use a * variable when an Array is needed, or something.

Benjaminsen, I just tried the project you built from scratch, and I'm getting the same problem when I compile your code in Flash. And when I try your compiled swf, it gives me a similar error: "Error #1068: playerio.e and * cannot be reconciled."

EDIT: It works when I try it in a browser. Very strange.
TharosTheDragon
 
Posts: 17
Joined: February 6th, 2013, 7:56 am

Re: facebookOAuthConnectPopup error

Postby Benjaminsen » March 11th, 2013, 2:08 pm

What versions of flash are you guys using?
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup error

Postby TharosTheDragon » March 11th, 2013, 8:09 pm

I'm using CS4, so that's probably the problem. facebookOAuthConnectPopup only seems to work in Flash Player 11, and I think CS4 can't run Flash Player 11 when it tests movies. I also noticed that the standalone player on my computer wasn't updated to Flash Player 11, and when I did that the Facebook stuff seemed to start working.

Do you know why facebookOAuthConnect wouldn't work in Flash Player 10?
TharosTheDragon
 
Posts: 17
Joined: February 6th, 2013, 7:56 am

Re: facebookOAuthConnectPopup error

Postby Benjaminsen » March 11th, 2013, 9:26 pm

TharosTheDragon wrote:I'm using CS4, so that's probably the problem. facebookOAuthConnectPopup only seems to work in Flash Player 11, and I think CS4 can't run Flash Player 11 when it tests movies. I also noticed that the standalone player on my computer wasn't updated to Flash Player 11, and when I did that the Facebook stuff seemed to start working.

Do you know why facebookOAuthConnect wouldn't work in Flash Player 10?


That could be the issue yes, I am quite sure we have a Vector class in there, which is a flash10 feature.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: facebookOAuthConnectPopup error

Postby TharosTheDragon » March 11th, 2013, 10:59 pm

Well that wouldn't explain it because I can use the Vector class just fine. Or is there a Flash 11 version of the Vector class that doesn't work with Flash 10?
TharosTheDragon
 
Posts: 17
Joined: February 6th, 2013, 7:56 am


Return to QuickConnect