AlmogBaku / ngFacebook

DEPRECATED Angular facebook service
MIT License
261 stars 70 forks source link

How do you get the access token? #35

Closed ajbraus closed 9 years ago

ajbraus commented 9 years ago

I use the FB access token to build a profile from my server. There is no getAccessToken method in your library?

ajbraus commented 9 years ago

https://developers.facebook.com/docs/reference/php/facebook-getAccessToken/

ajbraus commented 9 years ago

Oh I see its in the response to the login method.

  $facebook.login().then(function(response) {
      var auth_token = response.authResponse.accessToken)
  });
tvanesse commented 9 years ago

So what? Do we need to call $facebook.login() each time we want to retrieve the current access token? That sounds a bit counter-intuitive in my opinion.