-
-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Whatsapp messages cannot be received although no error message pops up as output #40
Comments
Hi @emre84 Can you please share the response message in English ? |
Hi Kalebu, thanks for the response. This is unfortunately what i get as response(nothingelse as imentiined above) Output: |
I have exactly the same problem. Thanks in advance for your time |
Hi @emre84 and @Mattia921 just know you cannot send other messages other than <template_message> to un whitelisted numbers, To able to do this you need to add the number to the recipient list in your Facebook developer portal. The error translates to {'error': {'message': '(#131030) Recipient phone number not in allowed list', 'type': 'OAuthException', 'code': 131030, 'error_data': {'messaging_product': 'whatsapp' , 'details': 'Recipient's phone number is not whitelisted: add the recipient's phone number to a recipient list, then try again.'}, 'error_subcode': 2655007, 'fbtrace_id': 'Akf6LRk1j9htPAuzA5P971E'}}
Please let me know if you're still having issues |
Hi @Kalebu, thanks for your response. The fact is that I do not receive any errors while executing the python code. 2022-11-09 10:49:39,296 - root - INFO - Sending message to 39333*** So the code is executed without errors, but I don't actually receive anything on the whatsapp number. |
Hi @Mattia921 Can you run this and let me know if you're able to receive a message? >>> messenger.send_template("hello_world", "255757xxxxxx", components={}) |
I added also in the recipient list in your Facebook developer portal. Note:I am sure that my token number, phone_number_id and recipient_id number are correct, with the reason that if I write anything wrong in these fields, I get following error message.: 2022-11-03 23:03:01,945 - root - INFO - Status code: 400 |
Hi @Kalebu, in this case I'am able to receive the message. So since I would like to use the library to upload and then download images, should I always use the send_template method? Thanks again for your help |
Since the access token updates every 24 hours, did you use the new one? |
I had many similar problems in the beginning and It just got solved with a new Facebook Business Profile. |
Hi @soerenetler, I've just tried with postman and I obtain the same result. I will try with a new Facebook Business profile as you suggest. Thanks |
I've tried with a new Business profile but I could not solve the problem |
I'm currently having the exact same problem, I've done all steps and still no message |
Currently, customers in Turkey cannot receive messages sent by businesses using Cloud API. However, businesses in Turkey are still able to send messages using the Cloud API. |
this way works for me, any other method doesn't give any error but doesn't send anything either. |
Did you add your number as one of the test numbers to the Facebook developer portal? You could also try replying first to the number before sending any other message other than the template message |
Hi, Thanks for the response. Following code works fine for me either:
But I can just send template messages with this command. |
Replying first to the number solve the problem. Thanks. |
Is anyone still having this issue?
|
I had this problem the very first time I set up the Facebook Dev Portal, fixed it by sending an SMS to the test number. |
Just send a template message and you are done! |
Environment:
MACOS Monterey
Python:3.7.3
heyoo:0.0.6 (pip)
Code:
from heyoo import WhatsApp
messenger = WhatsApp('xxx',phone_number_id='xxx')
messenger.send_message('Hello I am WhatsApp Cloud API', '49xxx')
Output:
2022-11-03 22:51:34,464 - root - INFO - Sending message to 49xxx
2022-11-03 22:51:35,200 - root - INFO - Message sent to 49xxx
Description:
Although my Facebook WhatsApp setting are done properly(Test message from Facebook Website can be sent properly). The WhatsApp message cannot be sent via heyoo. (No error message is received from python)
Note:I am sure that my token number, phone_number_id and recipient_id number are correct, with the reason that if I write anything wrong in these fields, I get following error message.:
2022-11-03 23:03:01,945 - root - INFO - Status code: 400
2022-11-03 23:03:01,945 - root - INFO - Response: {'error': {'message': '(#131030) Recipient phone number not in allowed list', 'type': 'OAuthException', 'code': 131030, 'error_data': {'messaging_product': 'whatsapp', 'details': 'Empfänger-Telefonnummer steht nicht auf Positivliste: Füge die Telefonnummer des Empfängers zu einer Empfängerliste hinzu und versuche es dann noch einmal.'}, 'error_subcode': 2655007, 'fbtrace_id': 'Akf6LRk1j9htPAuzA5P971E'}}
The text was updated successfully, but these errors were encountered: