how to post a simple update to stream

Nov 23, 2009 at 8:25 PM

I'm attempting to update a users status offline, meaning the user is not logged in. I have a user with the extended permissions set. From some of what i've seen on line the infinate session id is not needed any more. This is more of a question IS is still needed? If it is not then how do you publish to a stream or just update a status? Every attempt i've make to.

my current error message is : "parameter uid or session key required"

 code: (given that the id's are real )

var APIKEY = "dsdsdsdsdsdsdsdsdsds";
        var SECRET = "dsdsdsdsdsdsdsdsdsdsd";
        Facebook.Session.ConnectSession connectsession = new Facebook.Session.ConnectSession(APIKEY, SECRET);
        Api api = new Facebook.Rest.Api(connectsession);
        api.Session.UserId = 99999999999999999;
        api.Stream.Publish("test posting");