title: Facebook Like Button on iFrame-based FB Pages App - Problem
body: <p>I'm experiencing problems adding a like button to an iFrame based page within my FB fan pages tabs. I'm using the JavaScript SDK and the Open Graph to specify the page I'd like the user to "like" (which is the current page within my FB pages). </p>
  
  <p>The page is iFrame based, is an app in FB, and is accessed via the FB Page tabs of my FB Page. The problem is that Facebook is assigning the Like to my FB Page itself (my FB page homepage if you will) rather than the page In question (my test page – it’s set up as an app and appears in my FB Pages tabs under the name “og test”).</p>
  
  <p>I’ve tried running the target page for the iFrame through the FB linter and its giving a strange error saying I’ve supplied the Open Graph Type of “Other” (I haven’t, I’ve supplied “website” in my META tag) see below:</p>
  
  <p><a href="http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.airport-parking-quote.co.uk%2Ffacebook%2Fog-test.php" rel="nofollow">http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.airport-parking-quote.co.uk%2Ffacebook%2Fog-test.php</a></p>
  
  <p>Also, from looking at the debug page it seems that Facebook is either ignoring the QueryString in my “og:url” value and therefore only seeing my FB page’s vanity URL, or there is some kind of block on being able to Like iFrame based app pages.</p>
  
  <p>Can anyone shed any light on this? I thought from this article it would be possible to achieve what I am trying to do:</p>
  
  <p><a href="http://www.insidefacebook.com/2010/09/09/like-buttons-app-content/" rel="nofollow">http://www.insidefacebook.com/2010/09/09/like-buttons-app-content/</a></p>
  
  <p>The code for the iFrame target page is:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"&gt;
    &lt;head&gt;
      &lt;title&gt;Test Like&lt;/title&gt;
      &lt;meta property="og:title" content="OG Test"/&gt;
      &lt;meta property="og:type" content="website"/&gt;
      &lt;meta property="og:url" content="https://www.facebook.com/EssentialTravel?sk=app_275969292428556"/&gt;
      &lt;meta property="og:image" content=""/&gt;
      &lt;meta property="og:site_name" content=""/&gt;
      &lt;meta property="fb:admins" content="100002424161307"/&gt;
      &lt;meta property="fb:app_id" content="275969292428556"/&gt;
      &lt;meta property="og:description" content="OG test through canvas page"/&gt;
    &lt;/head&gt;
    &lt;body&gt;
    &lt;div id="fb-root"&gt;&lt;/div&gt;
    &lt;script src="http://connect.facebook.net/en_US/all.js"&gt;&lt;/script&gt;
    &lt;script&gt;
      FB.init({
        appId  : '275969292428556',
        status : true, // check login status
        cookie : true, // enable cookies to allow the server to access the session
        xfbml  : true, // parse XFBML
        oauth  : true // enable OAuth 2.0
      });
    &lt;/script&gt;
      Test Page&lt;br&gt;
      &lt;script src="http://connect.facebook.net/en_US/all.js#appId=156081301143077&amp;amp;xfbml=1"&gt;&lt;/script&gt;&lt;fb:like href="https://www.facebook.com/EssentialTravel?sk=app_275969292428556" send="false" width="450" show_faces="false" action="recommend" font=""&gt;&lt;/fb:like&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Anybody have any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Pjordanna</p>