Tuesday 21 March 2017

How to add facebook “Like Box”, “Share Box” and follow Box In Blogger.

The Like Box plugin, supplied by Facebook, allows web page contributors to embed a live stream of their Facebook page into a webpage.  Additionally, audience members can then choose to "Like" the stream topic.

This plug-in can be found by visiting the Facebook like box  web page, which is part of the facebook social Media Plugins collection.

Adding a Like Box to your web page, Drupal node, or Drupal block is

really simple.  Just follow the steps below:

Copy the URL of the Facebook page you would like to embed.

Go to the Facebook Like Box page 

at https://developers.facebook.com/docs/plugins/like-button .

 

Paste the URL into the Facebook Page URL field

Make any other desired configurations in the provided options.

Click the Get Code button.  This will produce a dialog box that contains some iframe code that you can embed on your page.

Copy the iframe code from dialog box and take it over to the Drupal page you wish to embed the code in.  Make sure your Drupal page is in Edit mode.Change the Input Format of the text editor to PHP - this must be done before pasting in any code.

Add any other HTML that you desire outside of the iframe tags.  

Remember, when using the PHP Input Format, if you want to add additional HTML, you will have to add the tags yourself. 

Using any other input format other than PHP will completely strip the PHP code from the text editor and it will not be automatically replaced if you toggle back.

Then Click  the Save button.

Your new Like Box embed should pop right into view and be ready for some interaction.

No comments:

Post a Comment