我刚刚决定为我的用户的时间轴构建一个stream_publish
的应用程序。
一切都按预期工作,除了一个小的美容错误,在facebook内我不知道如何实现锚文本。比如视频应用如何发布:
the users name followed by "has watched ####."
或
<a href="#">Anthony Rojas</a> has watched <a href="#"> video</a>
答案 0 :(得分: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){
}
}
祝你好运!