How to embed a Facebook page in a Google Site
(Note the code in red is what you got in step 1)
<?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="facebook embed example" /> <Content type="html"> <![CDATA[ <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-page" data-href="https://www.facebook.com/pages/Shiawassee-Arts-Center/111569842213473" data-width="600" data-height="600" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true" data-show-posts="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/pages/Shiawassee-Arts-Center/111569842213473"><a href="https://www.facebook.com/pages/Shiawassee-Arts-Center/111569842213473">Shiawassee Arts Center</a></blockquote></div></div> ]]> </Content> </Module>
If you want to download this gadget to use as an example see fb-sac.xml on the Gadgets page. NOTE: Many gadgets, notably Facebook ones and others, will not work on a private site!!! Sites will have to be "Public on the Web". If your gadget gives an error you might want to make sure your site is shared publicly.
How to embed a Facebook Comments Plugin in a Google SiteGet the code from https://developers.facebook.com/docs/plugins/comments Make a gadget. See the instructions above. If you want to download this gadget to use as an example see facebook-comments.xml on the Gadgets page. How to embed a Facebook Like Button in a Google SiteInstructions similar to the above.
Get the code from https://developers.facebook.com/docs/plugins/like-button
How to embed a Like button for my own siteInstead of creating your own gadgets try the one by Steegle: Some gadgets, notably Facebook ones, may not work on a private site!!! Sites will have to be "Public on the Web". |