javascript - Facebook JS SDK: How to logout app-only from Facebook as of now? -
over last years facebook changed api several times. started use them today (specifically javascript sdk): https://developers.facebook.com/docs/javascript).
i login by:
fb.init({ appid : appvariables.facebookoauth2parameters.appid, xfbml : true, version : 'v2.3' });
which works flawlessly.
my problem how logout user app (i.e. removing app user account).
in fact
fb.logout
can used, works it logs out user facebook itself.
i tried by:
var revokeurl = 'https://www.facebook.com/logout.php?next='+ appvariables.facebookoauth2parameters.appid +'&access_token=' + $scope.oauthtoken; $.ajax({ type: 'get', url: revokeurl, async: false, contenttype: "application/json", success: function(response) { }, error: function(e) { });
but despite "success" branch executes, my app isn't removed facebook account used tests.
any clue?
Comments
Post a Comment