livemessage

Apr 14, 2010 at 8:33 AM

hi, i'm using wpf and c# for creating an application based on fb.

I'm trying to use thi toolkit.

i use this code for connect with myuser

 

session = new DesktopSession("8159b7d1b5b8b8f843b883df106f793f", "3ee9bda96eec190b18be474c4ff61660", "3cc06bb8400c827589c1cb23-100000907805383", true, EP);
            api = new Api(session);
            service = BindingManager.CreateInstance(session);
            friends = api.Friends.GetUserObjects();
            stream = api.Stream;
            loginUrl = session.GetLoginUrl();
            conn = true;

 

    

	    EP = new List<Enums.ExtendedPermissions>()
                    {
                        Enums.ExtendedPermissions.read_stream , Enums.ExtendedPermissions.publish_stream,
                        Enums.ExtendedPermissions.offline_access
                        //aggiunto offline_access in 13/4
                    };	    
            session = new DesktopSession("xxxx", "xxxxx", "xxxxxx", true, EP);
            api = new Api(session);
            service = BindingManager.CreateInstance(session);
            friends = api.Friends.GetUserObjects();
            stream = api.Stream;
i want to send livemessage, but api.LiveMessage.Send(frienduid, "event_name", "message"); give me back an error.
what is wrong? i need others permission?
thank u in advance