Hi,
To get application access token.
Please follow the steps as following :
[Ignore this step if you have created application in Facebook and done with login functionality]
Step 1 : Create application into Facebook, Login using javascript and get access token :
http://narendrajarad.blogspot.in/2014/07/facebook-login-using-javascript.html
[Ignore this step if you have already add reference of Facebook from Nuget packages to your project]
Step 2 : Add reference of Facebook to your project :
http://narendrajarad.blogspot.in/2014/07/add-reference-of-facebook-from-nuget-to.html
Finally use this below code to "Get application access token using c#":
var client2 = new FacebookClient();
dynamic result = client2.Post("oauth/access_token", new
{
client_id = "Your Api Key",
client_secret = "Your Secret Key",
grant_type = "client_credentials",
});
var applicationAccessToken = result.access_token;
To get application access token.
Please follow the steps as following :
[Ignore this step if you have created application in Facebook and done with login functionality]
Step 1 : Create application into Facebook, Login using javascript and get access token :
http://narendrajarad.blogspot.in/2014/07/facebook-login-using-javascript.html
[Ignore this step if you have already add reference of Facebook from Nuget packages to your project]
Step 2 : Add reference of Facebook to your project :
http://narendrajarad.blogspot.in/2014/07/add-reference-of-facebook-from-nuget-to.html
Finally use this below code to "Get application access token using c#":
var client2 = new FacebookClient();
dynamic result = client2.Post("oauth/access_token", new
{
client_id = "Your Api Key",
client_secret = "Your Secret Key",
grant_type = "client_credentials",
});
var applicationAccessToken = result.access_token;
Comments
Post a Comment