So yes. You can use FacePile on your FaceBook page. But first you need to do something else.
You need to register your external page as a FaceBook application. You can do it here.
https://developers.facebook.com/apps
and create a new application. You need to specify what you want to do with this application, it was easier for me to say that I wanted to log in with Facebook (note that this function should not exist on your site, you just need to specify for FaceBook). You add your external website URL in the “Facebook Login” section of the “Website URL” and you have the facebook application on your external website. You also have an application id.
So when you go to
https://developers.facebook.com/docs/plugins/facepile/
to get the code fragments that you are using the Facebook application you just created (there’s a drop-down box after clicking the “get code” button or you can enter a number in the dialog box), and “URL” is the URL of the Facebook page that you want to love. If you click the "Get Code" button, you will get a few pieces of code like this:
<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/all.js#xfbml=1&appId=<YOUR_APP_ID_HERE>"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script','facebook-jssdk')); </script>
and
<div class="fb-facepile" data-href="http://facebook.com/<YOUR_PAGE_URL_HERE" data-max-rows="1" data-colorscheme="light" data-size="medium" data-show-count="true"></div>
Put them on your external page (after substituting the values) and facepile should work!
Hope this helps someone else!
source share