Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facebook login doesn't work? #114

Closed
tagliala opened this issue Dec 21, 2018 · 3 comments
Closed

Facebook login doesn't work? #114

tagliala opened this issue Dec 21, 2018 · 3 comments

Comments

@tagliala
Copy link
Member

Follow-up email received on 21th Dec

tagliala added a commit that referenced this issue Dec 27, 2018
Facebook requires SSL to pass through its OAuth authentication.

Solves #114
@tistudios
Copy link

tistudios commented Feb 6, 2019

I think I figured out how to fix it!
This is part 1/2

@tagliala is your app url entered here and
sss

and here

screen shot 2019-02-06 at 12 05 30 pm

they added some extra rules regarding Oauth2 logins so anyone using a fork of icare would have the same entry here for redirect url. Make sure that it has the trailing '/' in the url since FB is sensitive to that.

screen shot 2019-02-06 at 12 08 48 pm

Finally, go back to settings>advanced and input your url in the domain manager:
screen shot 2019-02-06 at 12 08 31 pm

@tistudios
Copy link

tistudios commented Feb 6, 2019

part 2/2

If you did all the above and tried to log in to your production app you'll probably be faced with an 'Error page - we're working on it' page from Facebook.

This can happen because of many things (including cache or browser history) but in our case it's because the permissions settings for Facebook have been updated and our current scopes are outdated.

Go to
screen shot 2019-02-06 at 12 17 34 pm

You'll see these scopes requested:
screen shot 2019-02-06 at 12 19 51 pm

Problem is that user_birthday & user_likes permissions first have to be approved by Facebook by going through an App Review process and we're only allowed email and public_profile as the scopes we can call if we dont want to wait 3 days for the App Review to occur. More permissions first have to be requested and approved by clicking on Permissions and Features link underneath the active link in my image below.
screen shot 2019-02-06 at 12 21 31 pm

So I edited my code to look like this:
screen shot 2019-02-06 at 12 24 07 pm

Now if you git add . && git commit -m "scopes updated" && git push heroku master your facebook login will work.

If you get this error ensure your Heroku application was set up with the proper ENV variables as mentioned in the wiki
The Issue referenced below is in regards to this error if you want more details
screen shot 2019-02-06 at 12 26 41 pm

-S

@tagliala
Copy link
Member Author

tagliala commented Jan 8, 2020

Closing here

@tagliala tagliala closed this as completed Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants