Note that there are some explanatory texts on larger screens.

plurals
  1. POFacebook auth/canvas not displaying
    text
    copied!<p>Hi Everytime I go directly to the app everything works properly. However when I click on the tab for the app on the fan page it is blank in firefox and chrome, however in ie it says: This content cannot be displayed in a frame To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame.</p> <p>What you can try: Open this content in a new window </p> <p>Does anyone know why this is not working? Here's my php code at the top of my canvas page. Thanks!</p> <pre><code>&lt;?php $app_id = "181247898619054"; $app_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; $my_url = "https://apps.facebook.com/wellnessiq/"; session_register(); session_start(); header('P3P: CP="CAO PSA OUR"'); if (!isset($_REQUEST["code"])) { $_SESSION['state'] = md5(uniqid(rand(), TRUE)); //CSRF protection $dialog_url = "https://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&amp;redirect_uri=" . urlencode($my_url) . "&amp;scope=email&amp;state=" . $_SESSION['state']; echo("&lt;script&gt; top.location.href='" . $dialog_url . "'&lt;/script&gt;"); exit; } $code = $_REQUEST['code']; { $token_url = "https://graph.facebook.com/oauth/access_token?" . "client_id=" . $app_id . "&amp;redirect_uri=" . urlencode($my_url) . "&amp;client_secret=" . $app_secret . "&amp;code=" . $code; $response = file_get_contents($token_url); $params = null; parse_str($response, $params); $graph_url = "https://graph.facebook.com/me?access_token=" . $params['access_token']; $user = json_decode(file_get_contents($graph_url)); } ?&gt; </code></pre>
 

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