How to check offline for Facebook permissions

Posted by oshafran on Stack Overflow See other posts from Stack Overflow or by oshafran
Published on 2010-05-31T09:18:47Z Indexed on 2010/05/31 9:22 UTC
Read the original article Hit count: 267

Filed under:
|
|
|

Hey all,

I have Facebook Toolkit for .NET and I am trying to check whether my application has permissions for a user.

I have the userId of the user, and I am trying to do:

_facebookAPI.Session.RequiredPermissions = listExtended;
                _facebookAPI.Session.SessionKey = Resources.FbApplicationKey;
                _facebookAPI.Session.SessionSecret = Resources.FbSecretKey;                
                _facebookAPI.Session.Login();                 

                if (_facebookAPI.Users.HasAppPermission(Enums.ExtendedPermissions.publish_stream) &&
                    _facebookAPI.Users.HasAppPermission(Enums.ExtendedPermissions.offline_access))

I get session is invalid error.

How can I check permissions in offline mode?

thank you

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET