Page 5 of 5

Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue May 12, 2015 11:36 am
by Joe Sharples

Hi Michael,

Unfortunately I'm receiving the same 404 error now.

I'm going to be looking into my own problem this afternoon, once i've figured out why mines not working i'll write a response on here and take a look at your post.


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue May 12, 2015 12:33 pm
by Michael4771079

Thanks Joe,
I was just trying to ensure I had followed you directions correctly.

I hope your successful:)


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue May 12, 2015 3:59 pm
by Joe Sharples

had no luck yet.
will continue tomorrow


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue May 12, 2015 4:14 pm
by Michael4771079

Thanks for the headup Joe, I'll do a bit of digging myself and as you will post any result thats effective

cheers


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Mon Jun 15, 2015 5:07 pm
by Joe Sharples

Did you have any luck with this issue Michael?
cheers


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Mon Jun 15, 2015 5:13 pm
by Michael4771079

Im afraid not Joe, I looked everywhere and nothing showed, one thing that was in my mind to check, if the startpage of the app is "facebook/me" will that work, I will try it but need to finish main app stuff first as Facebook is just an option for this app. However it would suit me better if a sloution is found

Best!
Michael


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue Jun 16, 2015 9:25 am
by Joe Sharples

Adjust call back url in the Facebook_Helper file to:

prehttp://appery.io/app/view/YourAppID/YourStartscreenName.html?loggedInWithFaceBook=true/pre


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue Jun 16, 2015 10:14 am
by Joe Sharples

Hi Michael

I have facebook login set up the same as above.

To recap, as I want to render all pages in one html I cant use:
pre
http://appery.io/app/view/MyAppID/DestinationPage.html
/pre
I have to use:
pre
http://appery.io/app/view/MyAppID/startScreenPage.html#DestinationPage
/pre

but as Yurii pointed out facebook login processing could not accept hashes (#) in the url.

Therefore I'm using the workaround:
using the call back
prehttp://appery.io/app/view/MyAppID/startScreenPage.html?loggedInWithFaceBook=true/pre
note: change MyAppID to your app's ID.

Make sure you change this in the JS file and in the app settings of the facebook dev page.

and on startScreenPage page show:
pre
if (window.location.search.indexOf('loggedInWithFaceBook=true') -1) {

//my DestinationPage is called 'facebookUser'
Apperyio.navigateTo('facebookUser');

console.log("nav to facebook user");

}
else {
}/pre

This works for me.
Let me know how you get on.


Facebook Login -- I'm getting 404 Page Not Found.

Posted: Tue Jun 16, 2015 10:37 am
by Michael4771079

Cheers Joe,
I will give it a go when I get to office later and update here.

Thanks Joe
Much appreciated!