Note that there are some explanatory texts on larger screens.

plurals
  1. PO<profile-pic> fbml tag not working in iframe application
    text
    copied!<pre><code>&lt;?php include_once 'config.inc.php'; function get_facebook_cookie($app_id, $app_secret) { $args = array(); parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args); ksort($args); $payload = ''; foreach ($args as $key =&gt; $value) { if ($key != 'sig') { $payload .= $key . '=' . $value; } } if (md5($payload . $app_secret) != $args['sig']) { return null; } return $args; } $cookie = get_facebook_cookie(174346302604624, be273568bf3e3b6c194fdcc09448201d); //catch the exception that gets thrown if the cookie has an invalid session_key in it $user = json_decode(file_get_contents( 'https://graph.facebook.com/me?access_token=' . $cookie['access_token'])); ?&gt; </code></pre> <p>//above is MY facebook script</p> <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; </code></pre> <p></p> <p> </p> <p> above the code is in my head</p> <pre><code>&lt;script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>above code is in body tag</p> <pre><code>&lt;div&gt;&lt;fb:profile-pic uid='&lt;?php echo $user-&gt;id; ?&gt;' &gt;&lt;/fb:profile-pic&gt;&lt;/div&gt; </code></pre> <p> </p> <pre><code>&lt;?php } ?&gt; &lt;div id="fb-root"&gt;&lt;/div&gt; </code></pre> <pre><code>&lt;script&gt; FB.init({appId: '&lt;?= 174346302604624 ?&gt;',status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.login',function(response) { window.location.reload(); }); &lt;/script&gt; above code is just before &lt;/body&gt; tag can any body tell me what is fault,i want to show profile pic </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