0

我刚刚决定为stream_publish我的用户的时间线构建一个应用程序。除了一个小的外观错误外,一切都按预期工作,在 facebook 中我不确定如何实现锚文本。比如视频应用如何发帖:

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

或者

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

1 回答 1

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){
        }
    }

祝你好运!

于 2012-05-30T20:40:57.000 回答