facebook / facebook-python-business-sdk

Python SDK for Meta Marketing APIs
https://developers.facebook.com/docs/business-sdk
Other
1.29k stars 635 forks source link

Add users to Custom Audience by phone numbers did not work? #481

Closed tranngoctan18 closed 6 years ago

tranngoctan18 commented 6 years ago

I use this method below of CustomAudience (CustomAudienceMixin.add_users) to add users by phone number (10k phone numbers), but it did not work. Do I use this method the wrong way?

screen shot 2018-06-15 at 12 17 04 pm

davepmarshall commented 6 years ago

Do you see any error when running this? The code looks fine to me. Do you define audience beforehand with something like audience = CustomAudience('1234567890')?

If the code runs and you're seeing messages like "1000 records added to audience" when you check in Asset Library and the problem is low/zero matches, I'd look at the formatting of the phone numbers. For example, I don't think your numbers above have the country code. FB say they are required: https://www.facebook.com/business/help/606443329504150

jingping2015 commented 6 years ago

Hey, thanks for your comment! This is actually an api issue. Please report the issue on Devsite Bug Report channel: https://developers.facebook.com/support/bugs/ Thanks!