Facebook - Custom audience deleting users issues

1.7k views Asked by At

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"
    ]
  ]
}
1

There are 1 answers

2
Guru Prasad On

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 me Permissions 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

Custom Audiences must maintain a certain minimum size, though the specific number is not actually documented. I believe the required minimum is approximately 100 unique users. If you need to remove so many users that you're going under this limit, I'd recommend deleting the custom audience entirely.

Hope it helps someone