【发布时间】:2012-01-28 04:42:14
【问题描述】:
我正在搜索三天,但没有找到解决问题的方法。我希望你能帮助我解决我的问题。
我成功在墙上发帖了。但是当我发布 ds wall 时出现问题,没有人(甚至我的朋友也是)可以看到我的帖子并且无法发布更新状态。只有我能看到墙上的帖子。我检查了我的 facebook 设置,并且墙帖属性是公开的。
string[] extendedPermissions = new[] { "publish_stream", "offline_access" };
var fbLoginDialog = new FacebookLoginDialog(appId, extendedPermissions);
fbLoginDialog.ShowDialog();
if (fbLoginDialog.FacebookOAuthResult != null) {
if (fbLoginDialog.FacebookOAuthResult.IsSuccess) {
var fb = new FacebookClient(fbLoginDialog.FacebookOAuthResult.AccessToken);
dynamic result = fb.Get("/me");
string firstName = result.first_name;
string lastName = result.last_name;
string id = result.id;
dynamic parameters = new ExpandoObject();
parameters.message = "Check out this 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 for the link";
parameters.description = "Longer description of the 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 result1 = fb.Post("me/feed", parameters);
【问题讨论】:
标签: facebook facebook-c#-sdk facebook-wall