4. fb:ref method <fb:ref handle="HANDLE_HERE" /> or <fb:ref url=" http:// acme.ca/update.php?handle =HANDLE_HERE" /> Then: facebook.fbml.setRefHandle("HANDLE_HERE", "FBML_Content") or facebook.fbml.refreshRefUrl(" http://acme.ca/update.php?handle = HANDLE_HERE") Note: Multiple Handles possible in the profile page, mass updates and 1 to many updates Infinite Session Required
5.
6. Get Infinite Session <?php // Include the facebook library config files. $facebook = new Facebook($api_key, $secret); // force a login page $facebook->require_frame(); $user = $facebook->require_login(); // Echo the "infinite session key" that everyone keeps talking about. echo $facebook->api_client->session_key; ?> Note: Logout and go to Callback URL
7. Use Session Key <?php // Include the facebook library config files. $facebook = new Facebook($api_key, $secret); $user = YOUR_FACEBOOK_USER_ID; $key = SESSION_KEY_WE_PROCURED_ABOVE; // Allows "you" to run your script $facebook->set_user($user, $key);