Verification: 900d95e0779452a0
Follow us on Facebook
Powered by: tecpharmacy

How To Embed FB Message Buttons In your Website

SHARE:

How To Embed FB Message Buttons In your Website - Tecpharmacy


This step-by-step guide explains the various techniques that you can use to easily embed the Facebook Messenger button in your website. When someone clicks the Message Me button, it will directly launch the Facebook Messenger app on their mobile phone or the messenger.com website if they are on the desktop. You can choose to receive messages in your Facebook profile or your Facebook page, if you have one.

A: Simple Facebook Messenger Link

The default Facebook Messenger button is rendered using JavaScript but you can also write them in pure HTML without requiring JavaScript. The advantage is that these buttons (see demo) would show up even if the user has enabled ad blockers and second, you can embed message links inside email newsletters.
Facebook Messenger
All you have to do is replace “XYZ” in the snippet below with your Facebook vanity username. If you don’t have a username yet, you can use your numerical Facebook profile ID instead. The link may be customized with CSS to resemble a button as seen in this live demo.
  1. <a href="https://m.me/XYZ">
  2. Message us on Facebook
  3. </a>
Tip: If you are not seeing messages sent to your Facebook profile, it is because Facebook automatically hides messages from people that are not in your contacts / friends list. Go to facebook.com/messages, click the “More” dropdown and choose “Filtered” to see all messages that are not in your main inbox.

B: Facebook Messenger Button

This is the default Facebook Messenger button (see live demo) rendered with JavaScript. Unlike the previous option that allows messaging to personal profile as well, this button is only available to Facebook Page owners for them to receive messages from other Facebook users.
To get started, copy-paste the following snippet in your blog template but remember to replace “XYZ” with the numeric ID of you Facebook Page. You can set the color as white for a blue text on white background button.
  1. <script>
  2. window.fbAsyncInit = function() {
  3. FB.init({
  4. appId : '95100348886',
  5. xfbml : true,
  6. version : 'v2.6'
  7. });
  8. };
  9.  
  10. (function(d, s, id){
  11. var js, fjs = d.getElementsByTagName(s)[0];
  12. if (d.getElementById(id)) {return;}
  13. js = d.createElement(s); js.id = id;
  14. js.src = "//connect.facebook.net/en_US/sdk.js";
  15. fjs.parentNode.insertBefore(js, fjs);
  16. }(document, 'script', 'facebook-jssdk'));
  17. </script>
  18.  
  19. <div class="fb-messengermessageus"
  20. messenger_app_id="95100348886"
  21. page_id="XYZ"
  22. color="blue"
  23. size="large">
  24. </div>
Tip: If you are unable to use the Facebook Messenger button, it is likely that your Facebook Page is configured to not receive messages. Go to your Facebook Page settings, choose General, Messages and turn on the option that says “Allow people to contact my Page privately by showing the Message button”.

C: Facebook Messenger Box

You have seen the Facebook Like box embedded in websites but did you know that the same box can also include an inline form allowing any Facebook user to contact you without even leaving your webpage. Here’s a live demo.
In this case you need to replace “XYZ” in the snippet below with the vanity username or ID of your Facebook Page. Anyone who is logged into Facebook can message you from your website itself, similar to regular contact us forms.
  1. <script>
  2. window.fbAsyncInit = function() {
  3. FB.init({
  4. appId : '95100348886',
  5. xfbml : true,
  6. version : 'v2.6'
  7. });
  8. };
  9.  
  10. (function(d, s, id){
  11. var js, fjs = d.getElementsByTagName(s)[0];
  12. if (d.getElementById(id)) {return;}
  13. js = d.createElement(s); js.id = id;
  14. js.src = "//connect.facebook.net/en_US/sdk.js";
  15. fjs.parentNode.insertBefore(js, fjs);
  16. }(document, 'script', 'facebook-jssdk'));
  17. </script>
  18.  
  19. <div class="fb-page"
  20. data-href="https://www.facebook.com/XZY/"
  21. data-tabs="messages"
  22. data-width="400"
  23. data-height="300"
  24. data-small-header="true">
  25. <div class="fb-xfbml-parse-ignore">
  26. <blockquote></blockquote>
  27. </div>
  28. </div>

COMMENTS

BLOGGER
Name

9Mobile,3,Acer,2,Admet,3,Afrione,1,Airtel,4,Alcatel,6,Allcall Bro,2,Amazon,2,Amazon Echo,1,Android App,14,Android Games/Apk,76,Android OS,8,Android Phone Specs,66,Apple,1,Archos,2,Asus,6,Autoloader,2,Blackberry,5,Blackview,18,blogging,15,Blu,10,Bluboo,2,Bontel,2,Brave Souls APK,1,Cagabi,1,Cherry Mobile,3,CMX,1,Coolpad,1,Cubot,5,Custom Rom,1,Data Bundles,14,Dll Errors,1,Doogee,6,Elephone,12,Energizer,1,Etisalat,2,Facebook,1,featured,8,Fero,2,Finow,2,Firewall,1,Flashfiles,9,Flashtools,10,FRP,4,gadgets,1,Game development,2,Games,30,Gaming Console,2,General,74,GFive,2,Gionee,33,Gionee P8W,1,Gionee S6s,2,Gionee Steel 2,1,Glo,4,Google,6,Gowin,2,GPS,1,Gretel,2,Gsm Aladdin,1,GTA For Android,1,GTA V,1,GTA V Apk+Data,1,Guest Post,5,Headphones,1,Hotwav,3,How To's,129,Hp,3,HTC,10,Huawei,21,iNew,2,Infinix,48,Infinix Note 3,2,Infinix Note 3 Pro,2,Innjoo,22,Intel Chipset,2,Intex,8,Iphone,5,Iphone 7,1,Irulu,1,Itel,24,Itel S31,1,K-Touch,1,Kata,5,Keecoo,1,Kenbo,9,Kimfly,5,Koolnee,1,Laptop Specs,8,Laptops,17,Lava,1,Leagoo,21,Lenovo,31,Lenovo P70,1,lenovo Phab 2 Pro,1,LG,7,Lumia,1,Lumia Price,1,M-Horse,23,Malata,1,MBO,6,Meizu,7,MI FlashTool,3,Micromax,1,Mobie development,1,Motorola,6,MTN,4,Neon,1,Networking,1,Nintendo,1,Nintendo Switch,1,Nokia,15,Nokia 6,1,Nokia Lumia,1,nougat 7.0,6,OBI,3,Oneplus,4,Oppo,13,Opsson,1,Oukital k6000 Pro,1,Oukitel,7,Pacfiles,3,Panasonic,3,Pes2017,1,Pes2017 Apk+Data,1,Philips,1,Phone,1,Ppsspp Games,6,Qmobile,3,QMX,2,ROMS,449,Roms/Firmware,489,Rooting,3,Samsung,71,Sapio,1,Smart Gadgets,4,Smart watch,5,Smartphone Specs,153,Smartphones,223,Smartphones Review,305,Sniper 3D Assassin,1,Softwares,49,Solo,1,Sony,16,Sp Flashtool,43,Spice Mobile,1,Spreadtrum,16,Stock Roms,32,Tablets,4,TechNew Update,10,TechNews,40,Technology,9,TechTutorials,32,Tecno,77,Tecno Camon C9 Plus,1,Tecno W5,3,Tecno W5 LTE,2,Templates,6,THL,2,Tips & Tricks,12,Twinkas,1,TWRP Recovery,4,Typing Speed,1,ulefone,15,Ultimate Cycler,1,Umi,4,UmiDigi,4,Vernee,3,Vivo,3,Vkworld,12,Vodafone,1,Vphone,1,Walton,1,Web design,1,web surfing,20,Web Tutorials,22,wiko,11,Windows 10,6,Wiselinktool,1,Wordpress,1,X-tigi V11,4,XBO,4,Xiaomi,27,Youtube,1,Zopo,10,ZTE,3,
ltr
item
Tecpharmacy: How To Embed FB Message Buttons In your Website
How To Embed FB Message Buttons In your Website
How To Embed FB Message Buttons In your Website - Tecpharmacy
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmtuP1ACIks6Z65iPIOkhpvV0-QL3O5YMpcJdzmUk-Yzml_BzQLm8V-y25NMh4_H_nNs9ECFiAQNzze4OTBI9qQz3oDemdRCjbg8lnnQYJ7GfcaJQ7ynewj8JE-yBviPIn9s_hasrrftZt/s320/facebook-messenger.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmtuP1ACIks6Z65iPIOkhpvV0-QL3O5YMpcJdzmUk-Yzml_BzQLm8V-y25NMh4_H_nNs9ECFiAQNzze4OTBI9qQz3oDemdRCjbg8lnnQYJ7GfcaJQ7ynewj8JE-yBviPIn9s_hasrrftZt/s72-c/facebook-messenger.png
Tecpharmacy
https://tecpharmacy.blogspot.com/2016/08/how-to-embed-fb-message-buttons-in-your.html
https://tecpharmacy.blogspot.com/
https://tecpharmacy.blogspot.com/
https://tecpharmacy.blogspot.com/2016/08/how-to-embed-fb-message-buttons-in-your.html
true
5899790456862012682
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy