joan16v

25 septiembre 2012

facebook graph: borrar una publicación (php)

Filed under: General — joan16v @ 14:35
$url = "https://graph.facebook.com/ID_PUBLICACION?method=delete&access_token=".$facebook_access_token;
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_VERBOSE => true
));
$result = curl_exec($ch);

Blog de WordPress.com.