I can't send messages with WhatsApp Business Cloud API - facebook

I am trying to send a message through WhatsApp using WhatsApp Business API, but it doesn't work.I created a new whatsapp application on the Facebook developers page. I entered my own phone instead of the test phone from the "Getting started" page. I'm trying to send a message with the sample api found on the "Getting started" page. I press the 'Send Message' button. I get the response "Message sent successfully". I can see that messages are sent in the statistics section on Facebook Business (https://business.facebook.com/wa/manage/insights/). However, messages do not come to the specified phone number.The messages I sent are not being delivered. "The first 1000 messages initiated by the business are free." specified as. So I should be able to send messages without a message problem. I have not made any payments as of now. It also asks me to add the receiving phone when I want to try the "Test number". The recipient sends a verification code when adding their phone. However, the verification code is not coming to the phone. Where am i doing wrong?
here are my results

Related

How work with Facebook Page Subscription Messaging

I'm working on Facebook Messenger chatbot and I've found documentation about Facebook Page Subscription Messaging. This feature allow your bot to send messages to users, outside of the "stardard" 24 hours messaging.
Facebook's documentation explains what is Subscription Messaging
but I've not found more details about how implement it.
My questions:
Is there any back-office to be able to send this kind of message ? For example to allow a Community Manager to send this messages
In the case where to do code is mandatory, I suppose I have to build a Facebook's users list and use it to send "Subscription Message" type to each. Can I send these messages to these users at the same time or I have to do some packets or add a small timeout between each messages ?
What happends if I send a "Subscribe Message" to an user who have unsubscribed to my bot's messages ?
Thanks !

Facebook won't send notifications from messages sent by a user that was transferred from a bot to the facebook page inbox by the Handover Protocol

I will name my firstborn after whoever answers my question!
My bot uses the Handover Protocol to transfer users from the bot (primary receiver) to the page's inbox (secondary receiver) after they tap on a 'chat with human' button, the problem is that I'm not getting any facebook notifications when the user starts messaging a human (page inbox).
Right now I'm having the bot email me anytime it transfers a user to a human but this fix obviously doesn't scale, ideally I would want facebook to send me notifications on my phone just like it does by default to pages that receive messages and don't have any bots installed.
I know I can see the messages sent to a human by using the 'standby' webhook but those are developer-side server logs, what I want are normal facebook notifications sent to the page owner and the people in the page's Roles so they reply to those messages instead of me (the developer) being the only one being notified through emails I have to send myself.
1.You have to go to Your Page--> Settings--> Notifications--> Select this option
from Messages- "Get a notification each time your Page receives a message".
2.Download "Facebook Pages Manager" App to get all your page related notification
on your phone.

invite gtalk user via xmpphp

I have set up a basic install of XMPPHP and to test it I tried sending a message from one of my gtalk (GoogleTalk) accounts to another gTalk account. The receiving account did not show the message, or the normal "user * has sent you a message: accept/block"
I then sent my receiving account a chat message from within the Google interface, and it prompted me (as expected) to add my account to the list of approved chat people.
Once my sending account was on the "approved" list, i was able successfully to send messages with xmpphp with no problem.
My question: Using xmpphp, how do i send an INVITATION to chat? I can send messages fine once the recipient accepts my incoming chats, but the first message sent does not trigger the chat program to prompt me to accept the messages.
As a follow-up...is there a way to find out if the recipient has accepted the request? ANy way to know that the messages are being delivered (or not)?
I had the same problem and the solution is to send a "subscribe" request before the message.
So just call
$conn->subscribe('someguy#someserver.net');
before
$conn->message('someguy#someserver.net', 'This is a test message!');

XMPP Framework: Not able to receive my messages

I am working on xmpp framework. I have done most of initial things. I created stream, Connected it and get authenticate. Now I am sending buddy request to another user from my app. App shows presence is sent. When I get roster it shows a entry there. But on other system I am not getting any precence or anything. I tried to send a message message is also not received by other client.
Than I used one id in ichat and send friend request to that id. Wow I am able to see friend request on ichat. I accept request from ichat :( No notification on my app.
If I send message to ichat. Message shown in iChat. but when I send message to my app from ichat.. My app is not getting any delegate called or nothing.
I don't know why this is happening.
I am using a non ARC xmpp framework.
Please guys Please help me. I am badly stucked in it :(
Thanks in Advance.
Have you consider to send presence after get authenticate?
If you are authenticate but not sending preence than server will consider you offline and all messages sent to you will be stored on server with delay.
Send your presence and see the magic. :)
I am not an iPhone developer so i can not explain programming.
In XMPP, Presence subscription has two handshakes. Like When first user send request to second user , it will ask for presence subscription to second user. When second user accept , then first user is subscribed for second user's presence. So he can get all the presence of second user. It's called "to" subscription type for first user. Now second user ask for presence subscription to first user and first accepts request then this "to" subscription type changed to "both" subscription type. Now both user can get presence of each other. otherwise only first user can get presence of second user.
And for messages, there must be a some prob with listener.

Get Response From External App in Windows Workflow

i am working on one small app i.e workflow wcf service which takes input of array of email and parallelforeach is sending email to each email id. in email i am sending two links for approval and decline which should call my MVC web application controller.controller calls my methods in workflow service for remaining execution.there is a console application which initiate a request of sending mail. mail sent successfully but when i click on the link given in the mail for approval or decline it does not work ! please suggest me something..