Home FacebookOAuthException when using the Facebook C# API
Reply: 1

FacebookOAuthException when using the Facebook C# API

LTR Published in 2018-02-13 13:06:20Z

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?

LTR Reply to 2018-02-13 13:25:49Z

The version needs to be specified as "v2.11", not "2.11".

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.337237 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO