In its document, Facebook recommend using a channel file for its JavaScript SDK. My question concerns a small detail about how to create this file. It is clear I must create and HTML file with the line <script src="//connect.facebook.net/en_US/all.js"></script>
But then Facebook recommend caching this file as long as possible and offers a PHP script to do it. My question is: where should I put this script? In the same channel.html file which I will place in the root of my website installation (a self-hosted WordPress blog).
Thanks!
P.
Channel file is supposed to have only the code as you’ve already mentioned
You can put caching code anywhere and most probably it is put in the index file.