Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

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

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

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

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

I hope your successful:)

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

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

had no luck yet.
will continue tomorrow

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

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

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

cheers

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

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

Did you have any luck with this issue Michael?
cheers

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

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

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

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

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

Adjust call back url in the Facebook_Helper file to:

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

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

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

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

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

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

Thanks Joe
Much appreciated!

Return to “Issues”