2012-05-30 27 views
0

我剛剛決定根據用戶的時間表構建一個應用程序到stream_publish。 除了一個小的化妝品錯誤,一切都在按預期工作,在Facebook內我不確定如何實現錨文本。比如如何在視頻應用的帖子:Facebook內的錨文本?

the users name followed by "has watched ####." 

<a href="#">Anthony Rojas</a> has watched <a href="#"> video</a> 

回答

0

我這樣做:

function publish_wall($link='',$message='',$caption='',$description='',$picture=''){ 
     try{      
      $ch = curl_init('https://graph.facebook.com/'.$this->Session->read("gid").'/feed?access_token='.$this->Session->read("access_token")); 
      curl_setopt ($ch, CURLOPT_POST, 1); 
      curl_setopt ($ch, CURLOPT_POSTFIELDS, "link=$link&message=$message&caption=$caption&description=$description&picture=$picture"); 
      curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
      $res = curl_exec ($ch); 
      curl_close ($ch); 

     }catch(Exception $efeed){ 
     } 
    } 

祝你好運!