Skip to content Skip to sidebar Skip to footer

Not Ready: File Not Uploaded When Adding To Facebook Custom Audience

I am attempting to add users to a Facebook Custom Audience using version 2.1 of their API. I'm using this Python script to create a new audience, and add users to it. import json,

Solution 1:

This turned out to be an issue with my hashing algorithm.

After posting this, I received a copy of an email hashing algorithm that was proven to work. It was this:

import hashlib
email = "somebody@somewhere.com"
email = email.strip().lower()
email = hashlib.sha256(email).hexdigest()

I compared the hash produced here to my own hash, and it wasn't coming out the same. After correcting it by stripping whitespace and not reusing a hasher in a loop, this problem resolved.

So, Not Ready can result from a hashing issue behind the scenes, or an upload containing too few valid & matching email addresses.

Post a Comment for "Not Ready: File Not Uploaded When Adding To Facebook Custom Audience"