-
Notifications
You must be signed in to change notification settings - Fork 2k
Facebook Login is not Working #697
Comments
Ok, hunted it down to a missing e-mail: jaredhanson/passport-facebook#129 |
@benmarten on which branch is this? master or 0.4.0, and are you updated to the latest version there? |
Ok, tested this real quick by cloning 0.4.0 branch and just configuring my fb app id. |
@benmarten is that found in the FB docs too? |
@benmarten Looking at the 0.4.0 code and the facebook strategy: |
@codydaig @benmarten it seems like your find matches the 'emails' profileField while @benmarten was showing success cases referrencing 'email' profileField (notice the plural vs singular use). I'm unable to test as I don't have a FB account but we should fix this if it's an actual problem on 0.4.0 |
@ilanbiala https://developers.facebook.com/docs/graph-api/reference/v2.3/user @benmarten Do you want to create the PR against the master branch? |
@benmarten @lirantal I have tested this on the latest branch, and it works with 'emails' so I am unable to reproduce this issue. |
@benmarten are you using the latest master? |
Ah ok found it ;) So first I see this issue:
which seems to lead to the error in the screenshot from above. Second, the fb login is not working for me now either... |
@rhutchison seems related to the issue I recently merged about the previous page in history bug (cfe71bb) |
Just a wild guess, but i think that passport seems to be called directly now from here: instead the code which resideds in facebook.js, should be called from that line, shouldn't it? |
@benmarten @lirantal what are the steps to reproduce? I am unable to reproduce in my environment, but I might be missing something. @benmarten are you sure your facebook config/callback url are setup correctly in the configuration? When you see the page not found, what is the URL in the address bar? |
@benmarten please make sure your environment config is updated to reflect this change |
@rhutchison I've tested these changes from #842 , and everything seems to be working fine for me. Although, I experienced the Page Not Found issue before I had updated my local env config to use the correct callback URL... |
indeed. that fixes the issue also for me. so basically only uncommenting local.js solved it... |
Great, so this is good to merge. |
The Facebook Login is not working and it does not throw any error in the console or web console.
The Facebook redirect works, but then in the application nothing is happening.
I have configured the App_id and secret. What's missing?
The text was updated successfully, but these errors were encountered: