Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/facebook/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
facebook中的锚文本?_Facebook_Hyperlink_Status - Fatal编程技术网

facebook中的锚文本?

facebook中的锚文本?,facebook,hyperlink,status,Facebook,Hyperlink,Status,我刚刚决定构建一个应用程序来stream\u publish发布到我用户的时间表。 除了一个表面上的小错误,在facebook中,我不知道如何实现锚文本,一切都正常工作。例如视频应用程序如何发布: the users name followed by "has watched ####." 或 已经观看了 我这样做: function publish_wall($link='',$message='',$caption='',$description='',$picture=''){

我刚刚决定构建一个应用程序来
stream\u publish
发布到我用户的时间表。 除了一个表面上的小错误,在facebook中,我不知道如何实现锚文本,一切都正常工作。例如视频应用程序如何发布:

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

已经观看了
我这样做:

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){
        }
    }
祝你好运

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