I'm working on a WP8.1 Universal App and I try to use the facebook c# sdk.
I successfully login to facebook and now I want to make a simple query
I test this code (from here http://facebooksdk.net/docs/phone/howtos/run-fql-queries/)
private async void OnQueryButtonClick(object sender, RoutedEventArgs e)
{
var fb = new Facebook.FacebookClient(this.loginButton.CurrentSession.AccessToken);
var result = await fb.GetTaskAsync("fql",
new
{
q = "SELECT uid, name, pic_square FROM user WHERE uid IN (SELECT uid2 FROM friend WHERE uid1 = me() LIMIT 25)"
});
System.Diagnostics.Debug.WriteLine("Result: " + result.ToString());
}
But I get this error:
(OAuthException - #12) (#12) fql is deprecated for versions v2.1 and higher
Someone can give a sample of usage of GetTaskAsync ?
:-)