简体   繁体   中英

FacebookOAuthException when using the Facebook C# API

I'm using the Facebook C# API in a Desktop application and retrieve an access token via OAuth in an embedded browser. The access token works fine when I use it in the Graph API Explorer. However, when I do a call from C# using the SDK, I get a FacebookOAuthException. The message is: "(OAuthException - #2500) Unknown path components: /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");

What is the problem here?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM