Witam, mam taki oto skrypt:
$attachment = http://www.php.net/array( 'access_token' => $kej, 'message' => $opisfb, 'link' => $linkstrona ); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $graph); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $attachment); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); //to suppress the curl output $result = curl_exec($ch); http://www.php.net/echo $result; http://www.php.net/echo '<br />'; curl_close ($ch);
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)