<?php
$ch = curl_init("https://graph.facebook.com/v19.0/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$result = curl_exec($ch);
$error  = curl_error($ch);
curl_close($ch);

if ($error) {
    echo "<p style='color:red;font-size:18px;'>❌ curl مبلوك: $error</p>";
} else {
    echo "<p style='color:green;font-size:18px;'>✅ curl يوصل لـ Facebook API</p>";
    echo "<pre>$result</pre>";
}
?>
