How does auth.RevokeAuthorization() work?

Apr 2, 2010 at 5:29 PM

How is RevokeAuthorization supposed to work?

I'm trying this:

   ConnectSession connect = 
new ConnectSession(FacebookHelper.ApiKey(), FacebookHelper.SecretKey());

Auth x = new Auth(fbSession);

but it throws an object reference error at the RevokeAuthorization call.  Any idea what I'm doing wrong?  Can someone point me to a working example?



Apr 2, 2010 at 5:36 PM

Finally found a working example:


             Facebook.Session.ConnectSession fbSession = new Facebook.Session.ConnectSession(ApiKey, SecretKey);
                fbSession.UserId = iFBUserID;
                fbSession.SessionKey = SessionKey;
                Api oApi = new Api(fbSession);