0

是否可以使用后面的代码撤销用户权限?

4

2 回答 2

0

是的:

var fb = new FacebookClient(accessToken);
var res = fb.Delete("me/permissions");

if (res is bool && (bool)res == true)
{
    // Facebook access token has been successfully revoked
}

查看官方文档:https ://developers.facebook.com/docs/reference/api/user/#permsdelete

于 2013-04-03T18:05:37.323 回答
0

检查这个:

        var fbContext = FacebookContext.Current;
        fbContext.Application = new FacebookApplication()
        {
            AppId = ### ,
            AppSecret = ###
        };

        fbContext.Authorize(
            new string[] {"user_likes","email",..},
            {AppUrl},
            {TabUrl}
        );
于 2012-10-14T10:25:41.277 回答