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

Could not run the Passport-Facebook example #7

Closed
rakatti opened this issue Mar 26, 2012 · 6 comments

Comments

Projects
None yet
3 participants
@rakatti
Copy link

commented Mar 26, 2012

I tried replacing the appid and secret and ran it ... but when I click on login with facebook it takes me to facebook with error
after logging into Facebook it does not redirect

I also saw some URL encoding happening ... I am not sure if this needs to get turned off ...

https://www.facebook.com/dialog/oauth?response_type=code&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Ffacebook%2Fcallback&client_id=40319531303xxxx&type=web_server

Is there any special configuration that needs to be done Facebook app ? or am i missing something ...

we are seriously considering using Passport-Facebook in our company... although we need to see how to fit passport because
we have authentication happening through Facebook-IOS SDK on the IOS device and all that is sent to the server is the
facebook token... are there any examples demonstrating this usecase....

@sw360cab

This comment has been minimized.

Copy link

commented Mar 29, 2012

It is working fine for me. It's likely that you haven't set up properly your app on Facebook side / site :D
In particular check out that you have configured correctly the "Site Domain" field to match your callback URI domain.

@rakatti

This comment has been minimized.

Copy link
Author

commented Mar 29, 2012

Appreciate it Sergio I will give it a try

Sent from my iPhone

On Mar 29, 2012, at 12:28 PM, Sergio Maria Matone
reply@reply.github.com
wrote:

It is working fine for me. It's likely that you haven't set up properly your app on Facebook side / site :D
In particular check out that you have configured correctly the "Site Domain" field to match your callback URI domain.


Reply to this email directly or view it on GitHub:
#7 (comment)

@jaredhanson

This comment has been minimized.

Copy link
Owner

commented Mar 31, 2012

Did @sw360cab's advice fix this issue? Facebook is rather picky about callback URLs matching your application's configuration. Once that is set up correctly, Passport-Facebook should be fully functional.

I don't have any direct experience integrating Facebook's iOS SDK, although it is on my radar to investigate. If you get it working, and have any tips, please share them!

@sw360cab

This comment has been minimized.

Copy link

commented Mar 31, 2012

I really think this could be closed.

@jaredhanson

This comment has been minimized.

Copy link
Owner

commented Mar 31, 2012

OK.

@rakatti

This comment has been minimized.

Copy link
Author

commented Mar 31, 2012

Pls close I will try advice shortly and let you know how it goes

Sent from my iPhone

On Mar 31, 2012, at 3:01 PM, Jared Hanson
reply@reply.github.com
wrote:

OK.


Reply to this email directly or view it on GitHub:
#7 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.