Site updated at 2018-01-25 17:33:45 UTC

This commit is contained in:
Travis CI 2018-01-25 17:33:45 +00:00
parent 2a429df2b2
commit 94552b64db
144 changed files with 304 additions and 301 deletions

View file

@ -106,7 +106,7 @@ The phone number used in <strong>target</strong> should be registered with Faceb
<span class="pi">-</span> <span class="s1">'</span><span class="s">+919784516314'</span>
</code></pre>
</div>
<p>You can also send messages to users that do not have stored their phone number with Facebook, but this requires a bit more work. The Messenger platform uses page specific user IDs instead of a global user ID. You will need to enable a webhook for the “messages” event in Facebooks developer console. Once a user writes a message to a page, that webhook will then receive the users page specifc ID as part of the webhooks payload. Below is a simple PHP script that reacts to the message “get my id” and sends a reply containing the users ID:</p>
<p>You can also send messages to users that do not have stored their phone number with Facebook, but this requires a bit more work. The Messenger platform uses page specific user IDs instead of a global user ID. You will need to enable a webhook for the “messages” event in Facebooks developer console. Once a user writes a message to a page, that webhook will then receive the users page specific ID as part of the webhooks payload. Below is a simple PHP script that reacts to the message “get my id” and sends a reply containing the users ID:</p>
<div class="language-php highlighter-rouge"><pre class="highlight"><code><span class="cp">&lt;?php</span>
<span class="nv">$access_token</span> <span class="o">=</span> <span class="s2">""</span><span class="p">;</span>