<div dir="ltr">You can also use <a href="http://make.com">make.com</a>:<div><a href="https://www.make.com/en/integrations/facebook-messenger/vtiger">https://www.make.com/en/integrations/facebook-messenger/vtiger</a><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 18 apr 2023 alle ore 07:53 Sutharsan J <<a href="mailto:ajstharsan@gmail.com">ajstharsan@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Rubén</div><div><br></div><div>Did you try ChatGPT? Even 3.5, gives a lot of support on fb integration as well as other common development areas. I got this :)</div><div><br></div><div><br><blockquote><font size="1">// Set up variables<br>$page_access_token = 'YOUR_PAGE_ACCESS_TOKEN';<br>$recipient_id = 'USER_OR_PAGE_ID';<br>$message_text = 'Hello, World!';<br><br>// Create message payload<br>$message_data = array(<br> 'recipient' => array('id' => $recipient_id),<br> 'message' => array('text' => $message_text)<br>);<br><br>// Set up API endpoint and request options<br>$api_endpoint = '<a href="https://graph.facebook.com/v13.0/me/messages" target="_blank">https://graph.facebook.com/v13.0/me/messages</a>';<br>$request_options = array(<br> 'http' => array(<br> 'method' => 'POST',<br> 'header' => 'Content-Type: application/json',<br> 'content' => json_encode($message_data)<br> )<br>);<br><br>// Send message<br>$context = stream_context_create($request_options);<br>$result = file_get_contents($api_endpoint.'?access_token='.$page_access_token, false, $context);</font></blockquote></div><div><br></div><div><br></div><div>Thanks<br></div><div>Sutharsan Jeganathan<br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 18, 2023 at 4:41 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Sutharsan, <div><br></div><div>Your overview is great. It's a very good starting point.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 14, 2023 at 10:37 PM Sutharsan J <<a href="mailto:ajstharsan@gmail.com" target="_blank">ajstharsan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi</div><div><br></div><div>You have to determine the authentication, such as user based or single. Here is the scenario I used with a single account, in this case <a href="https://developers.facebook.com/docs/development/create-an-app/server-to-server-apps" target="_blank">server to server</a> authentication. Note, I did this long ago and FB APIs changes, so not sharing code<br></div><div><ol><li>You may create a vtiger module such as "vtFbMessenger"</li><li><p>Create a Facebook App: <a href="https://developers.facebook.com/docs/development/create-an-app" target="_blank">Create a Facebook Ap</a>p in the Facebook Developer Console. This will allow you to authenticate your app and access the Messenger API</p></li><li><p> Web hook : Handle incoming messages: In your PHP application's webhook, handle incoming messages from the Messenger API. <br></p></li><ol><li>Subscribe to the Messenger API: In your app's Messenger settings,
subscribe to the Messenger API by providing the URL of your PHP
application's webhook.</li><li>Set up a webhook: Create a webhook
in your PHP application that listens for incoming messages from the
Messenger API. When a message is received, your webhook will be
notified.</li></ol><li><p>Sending: You can use the Messenger API to send messages, and to handle user input.</p></li><ol><li>Use an Action under vtFbMessenger module<br></li><li><p>Authenticate your app: Authenticate your app using a Facebook App Access Token or a Page Access Token.</p></li><li>Write code to send message</li></ol></ol><div>Refer <a href="https://developers.facebook.com/docs/messenger-platform/overview#app-review" target="_blank">https://developers.facebook.com/docs/messenger-platform/overview#app-review</a><br></div><div><br></div><div>Thanks<br></div><div>Sutharsan Jeganathan<br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 15, 2023 at 6:19 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi everyone,<div><br></div><div>A client asked me to integrate FB Messaner to Vtiger, so that vtiger users can chat using facebook messenger from within vtiger. Anybody has any experience with this? Any ideas on how/where to start? </div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><br><span>-- </span><br><div dir="ltr"><div dir="ltr"><span style="color:rgb(102,102,102)">Development Manager<br>
Radus28 Software Solution<br></span>
<span style="color:rgb(102,102,102)"><img title="www.radus28.com" alt="Radus28 Software Solution" width="205" height="60"><br>
123, Level 2, Mc Larens Building<br>
Baudhaloka Mw.<br>
Colombo 04<br>
Sri Lanka<br>
M : +94773795291<br>
E : <a href="mailto:sutharsan@radus28.com" target="_blank">sutharsan@radus28.com</a><br>
W : <a href="http://www.radus28.com" target="_blank">www.radus28.com</a></span></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><br><span>-- </span><br><div dir="ltr"><div dir="ltr"><span style="color:rgb(102,102,102)">Development Manager<br>
Radus28 Software Solution<br></span>
<span style="color:rgb(102,102,102)"><img title="www.radus28.com" alt="Radus28 Software Solution" width="205" height="60"><br>
123, Level 2, Mc Larens Building<br>
Baudhaloka Mw.<br>
Colombo 04<br>
Sri Lanka<br>
M : +94773795291<br>
E : <a href="mailto:sutharsan@radus28.com" target="_blank">sutharsan@radus28.com</a><br>
W : <a href="http://www.radus28.com" target="_blank">www.radus28.com</a></span></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Simone Travaglini<br>328 5499846<br>Linkedin: Simone Travaglini <br><br><br><span style="color:rgb(51,204,0)">Rispetta l'ambiente: non stampare questa mail se non ti è veramente necessario!</span><br></div>