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 に答える