Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

How Facebook Social Plugins Work

1 min read

Facebook social plugins enable you to provide engaging social experiences to your users with just a line of HTML. The Facebook Like Button is One of them. You can see a demo of the like button on this page at the end of the post. The Facebook like button will allow your readers to quickly share your posts with their Facebook Friends. You can also get to know how many people liked your Blog Post (see our own Facebook insights and demographics). The video below is just a little Demo of what you will see

httpv://www.youtube.com/watch?v=qOseOMIHGpA

How to Add the Facebook Like Button Below every Post

Open Varsity: 13 free courses for traders and investors

FREE AND SELF-PACED

Open Varsity: 13 free courses for traders and investors

From stock market basics to options strategies, quant trading and taxation, built around Indian market examples.

  • 407 chapters, beginner to expert
  • Options, Python, AmiBroker AFL and quant tracks
  • Risk management and trading psychology

1. Login to your Blogger Account and go to Design > Edit HTML and click on the check box which says “Expand Widget Templates”

2. Look for <data:post.body/> and immediately after that place the following code.


<b:if cond=’data:blog.pageType == &quot;item&quot;’>
<iframe allowTransparency=’true’ expr:src=’&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;width=100&amp;action=like&amp; font=arial&amp;colorscheme=light&quot;’ frameborder=’0′ scrolling=’no’ style=’border:none; overflow:hidden; width:450px; height:40px;’/>
</b:if>

This code will show the Like Button on Post pages only. If you want to display it everywhere, then remove the two lines of code in red.

3. Save the template and you should see the Like Button Below each of your posts. The other Facebook social plugins are added the same way, through an iframe.
Optional Customisations

a) Now try changing action=like to action=recommend in the code and you will see the recommend button instead if like button

b) Try changing colorscheme=light to colorscheme=dark or colorscheme=evil

c) You can change the font by editing the font=arial parameter. You can change it to any of

1. font=lucida+grande
2. font=segoe+ui
3. font=tahoma
4. font=trebuchet+ms
5. font=verdana

If you liked this post, then consider “Like” ing it 🙂

Marketcalls Elite Traders Club

MEMBERSHIP

Marketcalls Elite Traders Club

Every Marketcalls course and live mentorship in one membership: 127 courses and 2,500+ hours of learning.

  • Market Profile, Orderflow, AFL, Pine Script and Python
  • Live mentorship and TradEdge trading room
  • Premium tools and the Elite Slack community

Learn by watching: free videos every week

Market Profile, order flow, Python, AI and OpenAlgo tutorials on YouTube.

Rajandran R Creator of OpenAlgo Sketchmaker, RagZ. Building GenAI Applications. Telecom Engineer turned Full-time Derivative Trader. Mostly Trading Nifty, Banknifty, High Liquid Stock Derivatives. Trading the Markets Since 2006 onwards. Using Market Profile and Orderflow for more than a decade. Designed and published 100+ open source trading systems on various trading tools. Now the recent curiosity on building Trading AI Agents.

One Reply to “How Facebook Social Plugins Work”

  1. I am getting the following error :

    Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: Open quote is expected for attribute “{1}” associated with an element type “allowTransparency”.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More