Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

That's not our App. Ours is called Acavano.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

FB Login goes to Appery login page

Hi Brian,

Try using inAppBrowser as it's shown here:
https://getsatisfaction.com/apperyio/...
Instead of the code you use, for example:prewindow.open(url);/pre

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

Tried changing the code as suggested and now it goes directly to the Appery login screen and doesn't make it to the FB Login

code
window.open(url, '_blank', 'location=yes');
/code

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

FB Login goes to Appery login page

Hi Brian,

What is the value of 'url' variable at the moment?
What is the value of 'redirectUrl' (in service settings) and 'Site URL' (on developers.facebook.com)?

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

App Code
pre
var redirectUrl = 'http://appery.io/app/view/4a9e0984-5d50-4d2c-ae36-a190e2a22d5d/Free_Card.html';

var url = 'https://www.facebook.com/dialog/oauth?client_id=345118232286542';
url += '&redirect_uri=' + redirectUrl;
url += '&scope=basic_info,user_birthday,friends_birthday';
url += '&state='+OAuth.nonce(17);
/pre

FB Settings, valid OAuth redirect URLS
pre
http://appery.io/app/view/4a9e0984-5d50-4d2c-ae36-a190e2a22d5d/Free_Card.html
/pre

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

FB Login goes to Appery login page

Hi Brian,

You could implement Facebook authorization this way:
http://docs.appery.io/tutorials/conne...

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

We weren't using oauth.io for FB connect. Are you saying now we have to?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

FB Login goes to Appery login page

Hello Brian,

Yes, you may try, as an option, because you can't make your app working without this.

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

That's another paid service we would rather not have to pay for. There has to be a solution that doesn't involve signing up for oauth.io

Brian Evans
Posts: 0
Joined: Mon Feb 03, 2014 9:28 pm

FB Login goes to Appery login page

I changed code to reflect this document
http://devcenter.appery.io/tutorials/...

It is working just like the demo. I changed the callbackUrl to be Free_Card.html but it's still going to Facebook_Me.html

The weird thing is in the browser it goes to the correct callbackUrl. In the IO Tester or straight apk/ipa it doesn't.

Return to “Issues”