Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Facebook want to make sure that the servers it interacts with are of the same domain that is set up in the app settings.</p> <p>In the klout example you gave what they did was to add an <em>App Domain</em> which is done in the app settings, but there's a limitation to what domains you can add there. For example if your site url in the settings is set to "www.example.com" then you can add "examlpe.com" or "sub.example.com" to the app domains. But if you try to add "www.example2.com" you'll get:</p> <blockquote> <p><strong>Error</strong></p> <p>example2.com must be derived from your Site URL or your Mobile Web URL.</p> </blockquote> <hr> <h1>Edit</h1> <p>I'm sorry, I did not understand you correctly.</p> <p>If you want to simply redirect the user to your url in the main window then you can use javascript like this:</p> <pre><code>top.location.href = "http://www.example.com"; </code></pre> <p>What I was referring to before is the ability to have "www.example.com/" as the site url (in the settings) and still use "sub.example.com" with redirect_uri and such.</p> <hr> <h1>2nd Edit</h1> <p>Forgot to mention this: In the <a href="http://developers.facebook.com/policy/" rel="nofollow">Facebook Platform Policies</a> it states that:</p> <blockquote> <p>13 . The primary purpose of your Canvas or Page Tab app on Facebook must not be to simply redirect users out of the Facebook experience and onto an external site</p> </blockquote> <p>And so you should not redirect the users out of facebook.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload