The below code shows to get App Access Token,
public static string GetAppAccessToken()
{
var fb = new FacebookClient();
dynamic result = fb.Get("oauth/access_token", new
{
client_id = "****************",
client_secret = "*******************",
grant_type = "client_credentials"
});
return result.access_token;
}
but how can I get the access token of current user who logged in using Facebook SDK's using C#?
The above code will return the user token.
Note: Built using aspx page and this is based on V3.2 Graph API calls. The versions like 1 and 2, we need to send the Scope in the URI.
If anyone required source code, let me know...