FacebookforDrupal Publish to stream isnt working? I am trying to publish a node onto facebook. Below is my code. In hook_nodeapi(), I have placed a dpm("test") but it isnt showing. I am assuming that this function is not called at all?

function fb_stream_ext_nodeapi(&amp;$node, $op, $a3 = NULL, $a4 = NULL) {
  dpm("test");
  if ($op == 'insert' || $op == 'update') {
    if (isset($node-&gt;stream_publish) &amp;&amp; $node-&gt;stream_publish) {
      $attachment = array(
        'name' =&gt; $node-&gt;title,
        'href' =&gt; url('node/' . $node-&gt;nid, array('absolute' =&gt; TRUE)),
        'description' =&gt; filter_xss($node-&gt;teaser, array()),
      );

      /*
        if ($picture = $GLOBALS['user']-&gt;picture) {
        $url = url($picture, array('absolute' =&gt; TRUE));
        $attachment['media'][] = array(
        'type' =&gt; 'image',
        'src' =&gt; $url,
        'href' =&gt; $url,
        );
        }
      */
      if ($logo_path = theme_get_setting('logo_path')) {
        $url = url($logo_path, array('absolute' =&gt; TRUE));
        //dpm($logo_path, "logo_path is $logo_path and url is $url");
        $attachment['media'][] = array(
          'type' =&gt; 'image',
          'src' =&gt; $url,
          'href' =&gt; $url,
        );
      }

      $user_message = t('Check out my latest post on !site...',
                        array('!site' =&gt; variable_get('site_name', t('my Drupal for Facebook powered site'))));
      $actions = array();
      $actions[] = array(
        'text' =&gt; t('Read More'),
        'href' =&gt; url('node/' . $node-&gt;nid, array('absolute' =&gt; TRUE)),
      );
      fb_stream_publish_dialog(array('message' =&gt; $user_message,
                                     'attachment' =&gt; $attachment,
                                     'action_links' =&gt; $actions,
                               ));
    }
  }

  // Another way to add like button, as part of a node.
  if ($op == 'view' &amp;&amp; variable_get('fb_stream_ext_nodeapi_add_like', FALSE)) {
    $url = fb_scrub_urls(url('node/' . $node-&gt;nid, array('absolute' =&gt; TRUE)));
    $node-&gt;content['dff_like'] = array(
      '#value' =&gt; "&lt;fb:like href={$url}&gt;&lt;/fb:like&gt;",
      '#type' =&gt; 'markup',
      '#prefix' =&gt; '&lt;div class="dff_like_wrapper"&gt;',
      '#suffix' =&gt; '&lt;/div&gt;',
    );
  }
}


Any known solution for this?
Sorry, there is no hook_nodeapi() for D7. In D7, there are seperate hooks for create, update, view and delete operations. You could use this Link as a reference. 
You could insert your dpm("test"); inside hook_view() to test it.