Zwykle używam tylko apr facebook javascript, ale logowanie zaczęło sprawiać mi kłopot, więc próbuję z api PHP. Jest to wywołanie API w moim nagłówku:Błąd podczas wysyłania prośby o 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();
?>
uzyskać te wiadomości na mojej stronie:
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
Czy robię coś źle lub co może być problemem? Dzięki
mmm. i otwierający tag powinien być php – ThatGuy