title: Async Loading of Facebook Javascript SDK? Placement of channel.php?
body: <blockquote>
    <p>"The channelUrl must be a fully qualified URL matching the page on
    which you include the SDK."</p>
  </blockquote>
  
  <p>from the <a href="http://developers.facebook.com/docs/reference/javascript/" rel="nofollow">Facebook Developers Javascript SDK Documentation</a> </p>
  
  <p>Okay so I've added my code as shown here:</p>
  
  <pre><code>   window.fbAsyncInit = function() {
         FB.init({
            appId: '*****', 
            channelUrl: '//www.somehost.com/channel.php', // Channel File
            status: true, 
            cookie: true, 
            xfbml: true 
         });
  
         // Additional Init code here.
     };
  </code></pre>
  
  <p>The part of the site that will be loading the FB JS SDK is not on the index page or the root directory of the site where my channel file is located.</p>
  
  <p>So should I have my channel file in <code>//www.somehost.com/channel.php</code>? </p>
  
  <p>Or should I have it somewhere else like in <code>//www.somehost.com/directory/folder/</code> where the page that is going to load the SDK will be at?</p>
  
  <p>To me it sounds like the latter, but I'm not entirely sure about that since most of the examples I have seen place it in the root directory.</p>
  
  <p>Does placing the channel file in the root directory make it apply to all of the sub directories with pages that will load the SDK within the domain?</p>
  
  <p>It seems a little redundant to me to add a channel file for each subdirectory that has a page in it that will access the sdk (unless this has something to do with security).</p>