Normalmente uso solo la API de Facebook, pero el inicio de sesión comenzó a darme problemas, así que estoy intentando con la API de PHP. Esta es la llamada a la API en mi cabecera:Error al solicitar Facebook PHP Api?
<?
require 'stuff/facebook-php/src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'my app id',
'secret' => 'secret',
));
// Get User ID
$user = $facebook->getUser();
?>
recibo estos mensajes en mi sitio:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/02/6945202/html/copoetry/index.php:6) in /home/content/02/6945202/html/copoetry/stuff/facebook-php/src/facebook.php on line 37
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/02/6945202/html/copoetry/index.php:6) in /home/content/02/6945202/html/copoetry/stuff/facebook-php/src/facebook.php on line 37
Estoy haciendo algo mal o lo que podría ser el problema? Gracias
mmm. y la etiqueta de apertura debe ser php – ThatGuy