Is it possible to deauthorise my own app using the API [assuming I have sufficient permissions]?
I’m writing some unit tests and want to be able to register/unregister the app programatically (I’m aware the register step requires user input)
I’m working in PHP so calls are being made to the various URLs eg to logout:
header("Location: https://www.facebook.com/logout.php?next=" . urlencode($ReturnUrl) . "&access_token=" . $Params['access_token']);
For calls that return data, I’m using file_get_contents().
I’m already handling all the OAuth tokens.
I need a solution I can use server-side not JavaScript / browser automation.
Make a
HTTP DELETErequest to/PROFILE_ID/permissionswith your user’s access token (I think the App Access Token will work here too)