Just did a quick google search on this subject and found the following blog post:. This seems to be about setting up FB input in php.
The message says that when calling $facebook->require_login(); it asks the user for a login using FB, and then, upon successful registration, returns the FB ID so you can write something like $fb_id = $facebook->require_login(); and then save $fb_id .
Here is a complete hello world example - itβs best to read a blog post for a more complete guide:
<?php require_once('facebook/client/facebook.php'); $facebook = new Facebook(YOUR_API_KEY,YOUR_SECRET_CODE); $fb_user = $facebook->require_login(); ?> Hello <fb:name uid='<?php echo $fb_user; ?>' useyou='false' possessive='true' />! Welcome to my first application! <?php echo "<pre>Debug:" . print_r($facebook,true) . "</pre>"; ?>
source share