Can I publish something in my wall of facebook? I need to publish something in the user's facebook wall, when you entered the site, automatically.

This is the code that I actually use.

function publish(){
    global $user;
    $attachment = array(
            'name' =&gt; 'Name app',
            'href' =&gt; url('http://....', array('absolute' =&gt; TRUE)),
            'description' =&gt; 'Use this application.',
          );

    $user_message = t('Check out the latest application on !site...', array('!site' =&gt; t('My Drupal for Facebook powered site')));

    $actions = array();

    $actions[] = array('text' =&gt; t('Read More'),
                       'href' =&gt; url('http://....', array('absolute' =&gt; TRUE)),
                      );

    fb_stream_publish_dialog(array('user_message' =&gt; $user_message,
                                  'attachment' =&gt; $attachment,
                                   'action_links' =&gt; $actions,
                            ));
}


This code work, but it publish again the text when I edit the page, or I go to a different page.

Is there a module (for publish), or another way to do this?
Set a session variable, or a cookie, when sent the first time; check that always.