Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

All of a sudden Facebook Login redirection is not working.

As you can see from the code below redirection has been set. Both alerts that I have set areexecuted and this code (Apperyio.navigateTo('test', {reloadPage: true});) between the two alerts is just being ignored.
Redirect Page is whitelisted with Facebook.

As I said this was working perfectly and now has stopped.

Helper.init = function() {

Code: Select all

     var callbackUrl = "[url=https://appery.io/app/view/]https://appery.io/app/view/[/url]" + Facebook_API_settings.project_id + "/app/test.html"; 
     var url = "[url=https://www.facebook.com/dialog/oauth?client_id]https://www.facebook.com/dialog/oauth...[/url]=" + Facebook_API_settings.client_id + "&redirect_uri=" + callbackUrl + "&scope=&response_type=token"; 

     if (this.isPhoneGapApp()) { 
         ref = window.open(url, '_blank', 'location=yes'); 
         ref.addEventListener("loadstart", this.getAccessToken); 
     } else { 
         window.open(url, "_self"); 

     } 
 }; 

 Helper.getAccessToken = function(event) { 

     if (event.url.indexOf('access_token') = 0) { 
         console.log("Extracting access_token..."); 
         var params = event.url.split("access_token="); 
         var _access_token = params[1].slice(0, params[1].indexOf("&")); 
         localStorage.setItem('access_token', _access_token); 
         ref.close(); 
         alert("Navigation to"); 
         Apperyio.navigateTo('test', {reloadPage: true}); 
          alert("Navigation Complete"); 
     }
Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Facebook redirect navigation broken

Hello Deon,

Please try to debug your app remotely using Weinre debugger (https://docs.appery.io/docs/weinre-de...).

Please check if there are any errors in the Weinre console. You can learn here: https://docs.appery.io/docs/using-bro... how to open the console.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

I have no errors.
I also receive the token from facebook successfully

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Facebook redirect navigation broken

Do you receive alerts "Navigation to" and "Navigation Complete"?

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

Yes. Both are received. As I said the page navigation between the two alerts are not received. The screen remains on the login screen.

The Facebook Window opens fine as well.

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

7 days now. This is urgent please!!!!!!!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Facebook redirect navigation broken

Hi Deon - the forum is not a good place for serving issues in a timely manner if you have an urgent issue - write us at a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

It makes no difference. It does not get sorted in a timely manner there either. As a matter of fact I have a worse experience. My calls just get closed automatically.
Besides that, everyone should use the forum..

  1. It helps all developers that have the same or similar issue.
  2. Reduces your support.
Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Facebook redirect navigation broken

ZZZZZZZZZZZZZ

My client is so pissed off. They are now thinking of cancelling the order because they cannot afford for their app to run on an unstable platform.

You guys just keep losing me money!!!!!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Facebook redirect navigation broken

Hello,

Please share (https://docs.appery.io/docs/teams-sha...) your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and provide us with the following information:

1) App name
2) Test credentials if login functionality is implemented in your app
3) Detailed steps to reproduce the issue

Return to “Issues”