How does auth.RevokeAuthorization() work?

Apr 2, 2010 at 4: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);
   x
.RevokeAuthorization();

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?

 

Thanks!

Apr 2, 2010 at 4: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);
                oApi.Auth.RevokeAuthorization();