LiveMessage.send giving "unknown method" exception

Aug 20, 2010 at 10:20 AM


I am creating Desktop application using wpf and c#. When i try to send message to my friend using his/her userid then it gives error.

The code is:

Facebook.Session.DesktopSession session = new Facebook.Session.DesktopSession( my_api_key, true, new List<Enums.ExtendedPermissions>() { Enums.ExtendedPermissions.read_stream, Enums.ExtendedPermissions.publish_stream, Enums.ExtendedPermissions.status_update});

Api api= new Api(session);

bool flag = api.LiveMessage.Send( frienduid , "test" , "hello!!!!");   // the exception comes here

//The exception message is: unknown method