-
Notifications
You must be signed in to change notification settings - Fork 171
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
oauthcallback.html#access_token=... #3
Comments
Any ideas? Thanks for whatever help you can give. |
It depends how you set up your routes. The facebook redirect is returning you to your redirect url with an attached access_token. The OpenFB library seems to parse it on line 125 and save the token. Also, cd into your www directory and run your local server from there for more predictable results. Do you have a public repo for your project? |
Ran this succesfully in Cordova, but after the login, it seems to take me to: I assume that I should be taken back to the app... it looks like I need to pass a 2nd parameter into OpenFB.init(APP_ID, [NEW_REDIRECT_URL]); but for the app, what should this be? Is it like: [NOT_SURE_OF_DOMAIN?]/index.html#/app/login-success Can anyone help me out? Thanks! |
Its been a while, Ill look into it but just make sure you that you have inappbrowser installed and make sure that you are loading your index.html file from the same directory as your redirect. If your Facebook redirect is |
Yea I think I was missing the inappbrowser.. I had added it but not rebuilt it. I rebuilt it and now it seems to work, Just FYI, I modified the logout functionality in the files to get it to do a full logout (i.e. switch user). I know this can be cleaned up ,but I had logout serve a deferred event like the login, using a similar setup to post in and logout the user as well as discarding the local token. Seems to work for me in Cordova.. havent tested it on the web version yet. controllers.js openfb-angular.js |
That sounds like a safer transaction in terms of user privacy. What was your reasoning for changing it? I don't have merge access to this repo but maybe if you may a pull request and @ccoenraets for him to take a look. |
I am getting the login page from facebook but then after logging in the page turns white and the URL reads:
http://localhost:8000/www/oauthcallback.html#access_token=CAAIvBrMklb0BAAhOZCPXtDxmoSCWJAneA51hEYxeA3ZBF8YRsL2HTHebkI19aDuxri3U2WimKBgRZBi5JCYx2agpkxP66U5Ep2M5q5UNACyeJudZAEtqkk9LCsVa0EY8D4S4vjFtUx6CU7MqsrANgtFfOMdsgH1025QNNVz05h4cZAn0b4O2EJHJfZB4pKXDEZD&expires_in=6288
and the page says:
Error response
Error code 404.
Message: File not found.
Error code explanation: 404 = Nothing matches the given URI.
The text was updated successfully, but these errors were encountered: