Trying to update facebook status
I’m trying to write code to post to someones face book board.  Does somebody now a good titriol, or what is wrong with my code.
I was able to set up a developers account and download the php sdk.  I found a sample program by googling, but it comes up saying 
“Fatal error: Call to undefined method Facebook::require_login() in /home/consult/public_html/projects/facebook/post.php on line 6”
Code:
<?php
require_once ("facebook.php");
$appapikey = ‘281601425200348’;
$appsecret = ‘96420dfd4635b1e315f23458d628b1af’;
$facebook = new Facebook($appapikey, $appsecret);
$facebook->require_login();
$facebook->api_client->stream_publish(“YOUR MESSAGE”);
?>
I’v also tried to use java scrip from fac books sample code.  The dialog box does not get filled in b y, but is empty
Code:
    <script src="http://connect.facebook.net/en_US/all.js">
      </script>
      <script>
         FB.init({ 
            appId:'281601425200348', cookie:true, 
            status:true, xfbml:true 
         });

         FB.ui({ method: 'feed', 
            message: 'Facebook for Websites is super-cool'});
      </script>
Ted
Trying to update facebook status
===

I’m trying to write code to post to someones face book board.  Does somebody now a good titriol, or what is wrong with my code.
I was able to set up a developers account and download the php sdk.  I found a sample program by googling, but it comes up saying 
“Fatal error: Call to undefined method Facebook::require_login() in /home/consult/public_html/projects/facebook/post.php on line 6”
Code:
<?php
require_once ("facebook.php");
$appapikey = ‘281601425200348’;
$appsecret = ‘96420dfd4635b1e315f23458d628b1af’;
$facebook = new Facebook($appapikey, $appsecret);
$facebook->require_login();
$facebook->api_client->stream_publish(“YOUR MESSAGE”);
?>
I’v also tried to use java scrip from fac books sample code.  The dialog box does not get filled in b y, but is empty
Code:
    <script src="http://connect.facebook.net/en_US/all.js">
      </script>
      <script>
         FB.init({ 
            appId:'281601425200348', cookie:true, 
            status:true, xfbml:true 
         });

         FB.ui({ method: 'feed', 
            message: 'Facebook for Websites is super-cool'});
      </script>
Ted