Forum QuickConnect Facebook Flashvars AccessToken is Undefined

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

Facebook Flashvars AccessToken is Undefined

Postby JimLion » February 14th, 2015, 11:55 pm

As the title says, my accessToken is always undefined. I am trying to do it just like in the seedlings example, but it just doesn't work. :(

This is my code:
Code: Select all
parameters = LoaderInfo(this.root.loaderInfo).parameters;
         var parameters2:Object = stage.loaderInfo.parameters;
         
         trace("did we get the parameters? " + parameters + " " + parameters.fb_access_token + " " + parameters2.fb_access_token);
         


And it always prints out: did we get the parameters? undefined undefined

I am getting sent to a page that says this when I try to call facebookOAuthConnect
{
"error": {
"message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
"type": "OAuthException",
"code": 191
}
}


What's wrong here?
JimLion
 
Posts: 73
Joined: June 17th, 2014, 3:35 am

Re: Facebook Flashvars AccessToken is Undefined

Postby Henrik » February 15th, 2015, 2:33 am

You need to add playerio.com as a Site URL to your application config on Facebook.
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm

Re: Facebook Flashvars AccessToken is Undefined

Postby JimLion » February 15th, 2015, 5:56 am

In the facebook application config I see areas to input "Canvas Page", "Secure Canvas URL", "Valid OAuth redirect URIs"...

There is no option for "Site URL". Can you take a screenshot of what you are talking about?
JimLion
 
Posts: 73
Joined: June 17th, 2014, 3:35 am

Re: Facebook Flashvars AccessToken is Undefined

Postby JimLion » February 16th, 2015, 5:34 am

Thanks for replying. I also saw that mention in the documentation for "Site URL". I think these instructions are outdated. Perhaps the facebook app backend interface has changed, but I don't see "Site URL" anywhere.
JimLion
 
Posts: 73
Joined: June 17th, 2014, 3:35 am

Re: Facebook Flashvars AccessToken is Undefined

Postby Henrik » February 17th, 2015, 5:52 pm

If you search for the error message, this is the first hit:

http://stackoverflow.com/questions/1634 ... figuration

(And I know our documentation is outdated, we'll try to get it fixed)
Henrik
.IO
 
Posts: 1822
Joined: January 4th, 2010, 1:53 pm


Return to QuickConnect