stream_publish
ユーザーのタイムラインに合わせてアプリケーションを構築することにしました。Facebook内でアンカーテキストを実装する方法がわかりません。動画アプリの投稿方法など:
the users name followed by "has watched ####."
また
<a href="#">Anthony Rojas</a> has watched <a href="#"> video</a>
私はこれをします:
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){
}
}
幸運を!