Hi,
Do you want to Send Facebook notification to friend's using c#?
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 "Send Facebook notification to friend's using c#".
dynamic messagePost = new ExpandoObject();
messagePost.template = "Congratulations, @[" + FacebookuserId + "] has voted you.";
string acccessToken = hdfAccessToken.Value;
FacebookClient appp = new FacebookClient(lblApplicationToken.Text);
var postId = appp.Post(userId + "/notifications", messagePost);
Note : Do you want to get FacebookuserId of your Facebook friends : http://narendrajarad.blogspot.in/2014/07/get-facebook-friend-list-using-c.html
Do you want to Send Facebook notification to friend's using c#?
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 "Send Facebook notification to friend's using c#".
dynamic messagePost = new ExpandoObject();
messagePost.template = "Congratulations, @[" + FacebookuserId + "] has voted you.";
string acccessToken = hdfAccessToken.Value;
FacebookClient appp = new FacebookClient(lblApplicationToken.Text);
var postId = appp.Post(userId + "/notifications", messagePost);
Note : Do you want to get FacebookuserId of your Facebook friends : http://narendrajarad.blogspot.in/2014/07/get-facebook-friend-list-using-c.html
Comments
Post a Comment