Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to get Facebook Cookie and execute code
    primarykey
    data
    text
    <p>since i am new in facebook graph API ,but i know the basics .Now i need help from you all that how to read User Wall Post and others who posted on wall of any user, with read_stream. But i dnt know how to call. I tried some way but i was able to read jus name and basic info. I need help in reading objects. Please help me!!!</p> <pre><code>&lt;?php header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');?&gt; &lt;?php define('FACEBOOK_APP_ID', 'xxxxx'); define('FACEBOOK_SECRET', 'xxxxxxxxx'); function get_facebook_cookie($app_id, $application_secret) { $args = array(); print_r($_COOKIE); 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 . $application_secret) != $args['sig']) { return null; } return $args; } $cookie = get_facebook_cookie($app_id, $application_secret); echo 'The ID of the current user is ' . $cookie['uid']; ?&gt; &lt;html&gt; &lt;body&gt; &lt;?php if ($cookie) { ?&gt; Your user ID is &lt;?= $cookie['uid'] ?&gt; &lt;?php } else { ?&gt; &lt;fb:login-button&gt;Install Example App&lt;/fb:login-button&gt; &lt;?php } ?&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: 'xxxxxx', xfbml: true,cookie:true}); FB.Event.subscribe('auth.login', function(response) { // Reload the application in the logged-in state window.top.location = 'http://apps.facebook.com/fbvantivirus'; }); &lt;/script&gt; &lt;div style="display:none"&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>I have mention the entire code.please do help me.am struggling from last week..all try in vain.Thanks in advance. :)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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