Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Sure here's a fast way to go about getting the information you want:</p> <pre><code>&lt;?PHP define('FACEBOOK_APP_ID', 'yourappIDhere'); define('FACEBOOK_SECRET', 'yourFBsecretkeyhere'); function get_facebook_cookie($app_id, $application_secret) { $args = array(); if(isset($_COOKIE['fbs_' . $app_id])){ parse_str(trim($_COOKIE['fbs_' . $app_id], '\\"'), $args); } ksort($args); $payload = ''; foreach ($args as $key =&gt; $value) { if ($key != 'sig') { $payload .= $key . '=' . $value; } } if(isset($args['sig'])){ if (md5($payload . $application_secret) != $args['sig']) { return null; } else return $args; } else return null; } $cookie = get_facebook_cookie(FACEBOOK_APP_ID, FACEBOOK_SECRET); ?&gt; &lt;!DOCTYPE html&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; &lt;?php if ($cookie) { ?&gt; Your user ID is &lt;?PHP echo $cookie['uid']; ?&gt; &lt;?PHP $user = json_decode(file_get_contents('https://graph.facebook.com/me/access_token=' . $cookie['access_token']))-&gt;data; } else { ?&gt; &lt;fb:login-button perms="email"&gt;&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: '&lt;?= FACEBOOK_APP_ID ?&gt;', status: true, cookie: true, xfbml: true}); FB.Event.subscribe('auth.login', function(response) { window.location.reload(); }); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>After what Fair mentioned above, here's the very BASIC code you need to get the authentication setup for yourself.</p> <p>HTH :)</p> <p>You can change the parameters for the login button so it's not just "email" and then search by whatever else you may desire.</p>
    singulars
    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. VO
      singulars
      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