PHP News Feed分享按钮消失

问题描述:

我正在使用PHP将状态更新发布到我的某些粉丝页面。PHP News Feed分享按钮消失

我发布了链接,并且所有内容都可以正常加载,但是,分享按钮在帖子完成时消失。

我见过其他几个人问这个问题,但没有回答。

如果有人能帮我找到答案,我会确保告诉其他人。

谢谢大家!

 
    public function addStatus($status) 
    # Used in: FB Simple APi 
    #   
    { 

     if ($this->_user) { 

      try { 

       $dataArray = array(
        'message' => $status, 
        'link' => 'http://videomaniacsnetwork.com/wallposts/CZikEEIJiF.html' 
        );     

       if ($this->_isPage && REPLY_AS_PAGE) { 
        $dataArray['access_token'] = $this->_getPageToken(); 
       }     

       $publishStream = $this->_facebookObj->api('/' . $this->_userId . '/feed', 'post', $dataArray); 

       if (TRACE) {$this->_trace[] = 'addStatus'; } 
       return true; 
      } catch (FacebookApiException $e) { 
       $this->_errorArray[] = 'Could not set status.'; 
       $this->_debugArray[] = $e; 
       return false; 
      } 
     } 
    } 
+0

没有显示代码,所以我们无法告诉你发生了什么事情。 – phwd

可能是分享按钮没有通过“if”验证语句,如果您使用if语句来发布表单。 添加该表单的php代码验证。

+0

我刚添加了函数的源代码。 – Michael