【问题标题】:share link facebook update status wall using c#(facebook SDK)使用c#(facebook SDK)分享链接facebook更新状态墙
【发布时间】: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


    【解决方案1】:

    我建议尝试以下方法:

    • 更改parameters.privacy = new { value = "CUSTOM"}; 看看是否有帮助。
    • 确保朋友在目标列表中是合格的。
    • 请确保您的应用未处于沙盒模式,否则只有该应用的开发人员/测试人员可以看到该应用的帖子。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多