Share using Facebook C# SDK -


i new facebook c# sdk. hope able give me guidance.

i able share content on site on facebook.

here's do:

on site, when user clicks 'share on facebook', send few pieces of information -- thumbnail image, title row, , content facebook wall.

i have seen other sites seemlessly. hoping sdk can to.

i using facebook 4.2.1 sdk.

thanks in advance help. steve

you can find example on how , many other things here: http://facebooksdk.codeplex.com/wikipage?title=code%20examples&referringtitle=documentation

here code:

var client = new facebookclient("my_access_token"); dynamic parameters = new expandoobject(); parameters.message = "check out funny article"; parameters.link = "http://www.example.com/article.html"; parameters.picture = "http://www.example.com/article-thumbnail.jpg"; parameters.name = "article title"; parameters.caption = "caption link"; parameters.description = "longer description of link"; parameters.actions = new {     name = "view on zombo",     link = "http://www.zombo.com", }; parameters.privacy = new {     value = "all_friends", }; parameters.targeting = new {     countries = "us",     regions = "6,53",     locales = "6", }; dynamic result = client.post("me/feed", parameters); 

note: using version 5 of sdk. facebookclient named facebookapp in version 4.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -