-
Notifications
You must be signed in to change notification settings - Fork 2
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
Facebook access token #1
Comments
Hi Michael! Yes, you can get any external service user-id like this: //get current user service identifyer //check if user logined as facebook user if (extIdent.ServiceType == OAuthServiceType.Facebook) var facebookApiUserKey = extIdent.ServiceKey; .... } This all part of API which can be used but still haven't been documented :( . |
Hi Max, thanks for the fast answer! Its very much appreciated ... you probably I tried it out, but I think either I still don't get some basic, or we Because: To make requests to the Facebook API I need an "access_token" (as
WebRequest.Create("https://graph.facebook.com/me?access_token=" + I have built a function how to get the User Details, but I don't know The facebookApiUserKey you described isn't the accessToken. Maybe its For example: I hope you know what I mean, thank you very much for your time! And of Best Regards |
Michel, I suppose your accessToken - is access token of your application, and it should be placed into your config file, from where you can read it whenever it is necessary. You can register you app in facebook here http://developers.facebook.com/setup/ and then get access token. |
Hi Max,
first of all, great work with your open-mvc. I used DotNetOpenAuth
first and tried to build something exactly like you did; I just
brought the Facebook-Login to work when I thought that there are
surely already variants which are more generic and include more social
networks etc. :-) So thank you for your work, it's working great.
I have just one question to it:
I would also like to save the external systems ID's (for example
Facebook User ID) of the User in my database too. So the question is,
when a user is logged in, how can I get his external system user id
(eg. Facebook User ID)? I know that I can query the Facebook API with
a AccessToken, but I don't know where the AccessToken is either. Maybe
I just don't know about the naming of certain variables, as I was just
into the Facebook API (and not all other Social Networks).
Maybe you explained it somewhere already, I just didn't find it or
maybe its a stupid question.
Anyway, thanks in advance for an advice! :-)
Best Regards
The text was updated successfully, but these errors were encountered: