Following our previous tutorial: How To: Create Facebook Events Using Graph API And to insure that we cover as much information as we can, we are going to show you today how to use the similar (previous) approach but without redirecting the user to Facebook (using cURL). Our code For this we have modified our previous code as follows: <?php $app_id = "APP_ID" ; $app_secret = "APP_SECRET" ; $my_url = "REDIRECT_URL" ; // mainly this should be the same URL to THIS page $code = $_REQUEST [ "code" ]; if ( empty ( $code )) { $auth_url = " http://www.facebook.com/dialog/oauth?client_id= " . $app_id . "&redirect_uri=" . urlencode( $my_url ) . "&scope=create_event" ; echo ( "<script>top.location.href='" . $auth_url . "'</script>" ); } $token_url = " https://graph.facebook.com/oauth/access_token?client_id= " . $app_id . "&re...