【问题标题】:FacebookOAuthException when using the Facebook C# API使用 Facebook C# API 时出现 FacebookOAuthException
【发布时间】:2018-02-13 13:06:20
【问题描述】:

我在桌面应用程序中使用 Facebook C# API,并在嵌入式浏览器中通过 OAuth 检索访问令牌。当我在 Graph API Explorer 中使用访问令牌时,它可以正常工作。但是,当我使用 SDK 从 C# 调用时,我会收到 FacebookOAuthException。消息是:“(OAuthException - #2500)未知路径组件:/me”。

var client = new FacebookClient(accessToken); // token confirmed to work via API Explorer
client.Version = "2.11";
client.AppId = appid;
dynamic me = client.Get("me");

这里有什么问题?

【问题讨论】:

    标签: c# facebook facebook-graph-api facebook-c#-sdk


    【解决方案1】:

    版本需要指定为“v2.11”,而不是“2.11”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-02-27
      • 1970-01-01
      • 2011-03-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多