Change Facebook and Twitter Blocks on Sub Domains - AamAadmiParty/india-standalone-drupal GitHub Wiki

Facebook Blocks

  1. Goto Facebook Developer (Like Box) page.
    • In the facebook page url give the url of your state's facebook page. For eg for AAP Rajasthan page the url is https://www.facebook.com/AAPRajasthan. Make sure that the height of the like box is 550.
  2. Make sure the Show posts checkbox is checked.
  3. Check if the block is same as you desire.
  4. Click on get code, it will open an overlay in the overlay select iframe and copy the code.
  5. Now, goto http://aamaadmiparty.org/admin/structure/domain/batch/facebook_block as an user with admin privileges.
  6. Paste the code from step 5 in the text area corresponding to your state's name.
  7. Click on Update Domain Settings.

Twitter Blocks

  1. Goto the twitter page of the state's AAP profile.
  2. Click on settings icon right beside the follow/unfollow link. Select Embed this profile.
  3. Change the height to 550.
  4. Click on save changes, then the code for the block will appear right beside the Save button.
  5. Copy the code.
  6. Now, goto http://aamaadmiparty.org/admin/structure/domain/batch/twitter_block as an user with admin privileges.
  7. Paste the code from step 5 in the text area corresponding to your state's name.
  8. Click on Update Domain Settings.

For changes to take effect on the site you need to clear the Drupal and the Varnish cache.