Monday 13 June 2016

How do I add a Facebook "Like Box" to my page?

Adding a Like Box to your web page,  Just follow the steps below:
  1. Copy the URL of the Facebook page you would like to embed.
  2. Go to the Facebook Like Box page at http://developers.facebook.com/docs/reference/plugins/like-box.
  3. Paste the URL into the Facebook Page URL field
  4. Make any other desired configurations in the provided options.
  5. Click the Get Code button.  This will produce a dialog box that contains some iframe code that you can embed on your page.
  6. 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.
  7. Change the Input Format of the text editor to PHP - this must be done before pasting in any code.
  8. Add any other HTML that you desire outside of the iframe tags. 
    1. Remember, when using the PHP Input Format, if you want to add additional HTML, you will have to add the tags yourself. 
    2. 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.
  9. 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