Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

I configured the Facebook Login to redirect back to startScreen, but I need the page to reload -- so that javascript that's called on page load executes. What I have done works for web but it doesn't work in phonegap?

See:
http://appery.io/app/view/5cd3d238-81...
vs
https://appery.io/app/project/5cd3d23...
Image Image

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

Facebook Login redirect back to startScreen

Hello,

Could you please tell steps to test?
On what event it is supposed to redirect back to login page?

Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

click the Facebook Login button.

  • in the browser it comes back to startScreen and runs a script to remove the login/signup options and replace them with a logout button

  • in phonegap, this doesn't happen

    in order for you to test this, i will have to add you as a tester to the facebook app -- how should we go about doing this?

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

Facebook Login redirect back to startScreen

You can create test account and grant necessary permissions, and then tell us its test credentials.

Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

you mean create a new facebook account and then tell you the email and password to that facebook account? ... hmm i don't think it's possible/legal to create test facebook accounts?

Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

Alright well, I did it anyway:
email: a href="mailto:gdasu@alumni.stanford.edu" rel="nofollow"gdasu@alumni.stanford.edu/a
password: dumdum99
birthday: July 4, 1994
Please try logging in and tell me what the issue is with my app when on phonegap

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

Facebook Login redirect back to startScreen

Govinda,

I've tested both cases.
After success log in, I see the error http://prntscr.com/4t8cec, then click OK and it redirects me to startScreen.

What Android version do you have on your device?
Please try to debug http://devcenter.appery.io/documentat...

Also, if you wish, you can delete comment with credentials in order not to make them public, I've added this information to the ticket.

Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

But look, Alena, what I'm asking is pretty simple: I need to run some javascript after the Appery.navigateTo call? How do I do that?

Please don't respond the following because I've already tried that

  • onload of startScreen, run javascript: this doesn't work because the navigate to command doesn't trigger the reloading of startScreen on phonegap
  • calling window.functionname() or context.functionname(), after the Appery.navigateTo call
Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

Alright, you should be able to try it now without getting the error you sent. Also, the important thing is that after a successful login through facebook, the startscreen should remove Facebook Login, User ID Login, Phone Signup, Email Sign Up and replace them with a Logout button. That happens on web but not on phonegap. I use Android 4.4.2. [ok and i'll look into the remote debugger]

Govinda Dasu
Posts: 0
Joined: Fri Sep 12, 2014 1:39 am

Facebook Login redirect back to startScreen

The remote debugger doesn't cover phonegap issues --- it deals with the web app so I can't solve my problem with it.

Return to “Issues”