NewMeRequest in the Facebook Android API in C#

First of all i’m quite new to C#, so bare with me here.

I’ve been trying to do a Request.NewMeRequest with the Facebook API for Android in Xamarin Studio through the following code:

Request.NewMeRequest (currentSession, new Request.IGraphUserCallback() {
    override void OnCompleted(IGraphUser user, Response Response){
        Console.WriteLine(user.FirstName);
    }
}).ExecuteAsync ();

But Xamarin Studio gives some errors, so I think i am not doing this the right way in C#. Does someone have some sample code of how to do this or some exaplanation of why this isn’t working?

Thanks in advance!


Source: facebook

Leave a Reply