How to call version API services in the .NET.NET SDK?

it seems like Facebook is currently wanting us to call the versioned API End Graphs. For example, https://graph.facebook.com/v2.0/me ...

Does the Facebook SDK for .NET provide versioning? Can I / do something to indicate the version?

+4
source share
1 answer

Sanjeev got it, there is a parameter that you can add to indicate the version:

FacebookClient fbClient = new FacebookClient();
fbClient.Version = "v2.2";
fbClient.Post("me/feed", new
{
    message = string.Format("Hello version 2.2! - Try #2"),
    access_token = "youraccesstokenhere"
});

, : https://developers.facebook.com/docs/apps/versions#unversioned_calls

Facebook , .

, , , .

+3

All Articles