I was wondering if anyone happened to know how to delete a facebook test user. I've been perusing through this site for quite awhile now and haven't been able to uncover anything related besides a single unanswered post regarding deleting a facebook test user associated with 2+ apps. Facebook now offers a UI within their dev site which allows this functionality; however, I'm trying to perform the same operation through a C# script utilizing the Graph API and issuing the relevant HTTP commands. Tried monitoring the requests made through the UI using netmon/Fiddler but wasn't able to uncover anything useful. Help, any & all will be greatly appreciated.
See https://developers.facebook.com/docs/test_users/ - the section marked 'Deleting':
https://graph.facebook.com/TEST_USER_ID?
method=delete
&access_token=TEST_USER_ACCESS_TOKEN (OR) APP_ACCESS_TOKEN
I was not able to get the TEST_USER_ACCESS_TOKEN to work. I did get the APP_ACCESS_TOKEN to work. Here is what worked for me.
https://graph.facebook.com/<TEST_USER_ID>?method=delete&access_token=<APP_ID>%7C<APP_ACCESS_TOKEN>
Use FB graph API as follows:
https://graph.facebook.com/v2.8/{test-user-id}?method=delete&access_token={user-access-token}
You should get the following response:
{"success":true}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.