I could successfully able to push users into custom audience in facebook in this endpoint - https://graph.facebook.com/v5.0/audienceid_goes_here/users
Now I need to delete the user from the custom audience. I tried with the same endpoint but am getting OAuth "Facebook Platform" "invalid_request" "Permissions error"
Have provided all admin permissions under business settings to systems users and granted all access. Still not sure how to make this work. Am I missing anything?
Any help would be greatly appreciated
Below is the code that I tried
Endpoint - https://graph.facebook.com/v5.0/audience_id_goes_here/users
Method - DELETE
payload={
"schema": [
"EMAIL_SHA256"
],
"data": [
[
"hashed_email_goes_here"
]
]
}
Incase anyone is facing the same issue, below is some of the workaround I did. Tried the delete users from audience using facebook explorer - https://developers.facebook.com/tools/explorer
This gives clear error of why it failed. In my case it was due to this message
You cannot remove users from this audience because it will result in a low audience size.
but the error from API in my code was still giving mePermissions error
.After checking from fb explorer i got the clear error message. So there is no resolution for this and its a valid error message as mentioned here - https://developers.facebook.com/support/bugs/2093728693993530
Hope it helps someone