E
estudios
Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
function get_fb_data($get) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . urlencode($get));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$exec = curl_exec($ch);
return json_decode($exec);
curl_close($ch);
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://graph.facebook.com/' . urlencode($get));
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$exec = curl_exec($ch);
return json_decode($exec);
curl_close($ch);
}

