-
Notifications
You must be signed in to change notification settings - Fork 69
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
Load access token into API #38
Comments
Hi @nivek91 , In my understanding, you can use Facebook JS SDK to do what you're attempting to do without saving the access token (Facebook itself doesn't want you to do that either). Once the user gets connected with your Facebook application and doesn't manually remove the connection, you can simply use You can check out the API demo in README.md as an example. |
Hey, first thanks for replying! I think I was not very clear! The flow would be like this: Kevin On Sun, Aug 24, 2014 at 3:03 AM, Chih-Hsuan Fan [email protected]
|
Any headway on this? I'd like the same thing. I just want to be able to send the fb token with the request. |
Hey @wmbutler As long as the user has signed in Facebook and already connected with your FB application. Simply call e.g. http://plnkr.co/edit/qclqht?p=preview It doesn't require you to login in with Facebook again before calling |
Hi after the user has signed in with facebook. I have result with the access token and the user id. I was trying to pass these 2 things to the ezfb object so the user doesn't have to sign in with facebook again. Is there a way to do this?
My code for login:
ezfb.login(null, {
scope: facebookcfg.scope
}).then(function(res) {
console.log(res);
$facebook.saveFacebookToken(res.authResponse.accessToken, res.authResponse.userID);
});
I want to do this:
$facebook.getFacebookToken()
.then(function(result) {
//TODO: pass result to ezfb: ezfb.loadSignedInData(result.accesstoken, result.userId)
console.log(result);
},
function(result) {
$scope.login();
})
Thanks!
The text was updated successfully, but these errors were encountered: