AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

Following the tutorial at http://docs.appery.io/tutorials/build...
I get to the part where I've created the click javascripts and added my APP ID; trying to test the app in the browser and after clicking to log in it takes me to what looks like the right url but the browser tab just hangs - all white screen no content.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

FB tutorial leaves me hanging trying to test login

Hello! Could you check are there any errors in console?

AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

I see no errors in the console.

The url to facebook is:

https://www.facebook.com/dialog/oauth...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

FB tutorial leaves me hanging trying to test login

Could you post screenshot of what you see when Connect button?

AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

When I hit the connect button, a new tab opens with nothing in it - just a white screen that never changes. Its worthless to take a screenshot of that!

AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

Can you follow the url I gave you previously? What do you get?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

FB tutorial leaves me hanging trying to test login

Looks like there is some problem on Facebook side
http://stackoverflow.com/questions/15...
https://developers.facebook.com/x/bug...

You would need to contact Facebook support.

AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

Both those links where to issues that were resolved (a year ago!)...

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

FB tutorial leaves me hanging trying to test login

Hello,

var redirectUrl = 'http://appery.io/app/view/d8ca9181-48...';

var url = 'https://www.facebook.com/dialog/oauth...';
url += '&redirect_uri=' + redirectUrl;
url += '&scope=user_education_history,friends_education_history,user_work_history,friends_work_history';
url += '&state='+OAuth.nonce(17);

Make changes in code according to your parameters like it is shown In the tutorials http://docs.appery.io/tutorials/build...:

  1. variable "redirectUrl" - url to your "result" page.

  2. "YOUR_APP_ID" - should be replaced with your appId.

AfshinMokhtari
Posts: 0
Joined: Tue Mar 11, 2014 9:25 am

FB tutorial leaves me hanging trying to test login

Yes, all that is as according to the tutorial. This is what I get:

Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.

Return to “Issues”