나는 보통 facebook javascript API 만 사용하지만 로그인이 나에게 문제가되어 PHP API를 사용하려고합니다.Facebook PHP Api를 요청할 때 오류가 발생 했습니까?
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
내가 뭔가 잘못하고 있는가 또는 무엇이 문제가 될 수 : 내 사이트에 이러한 메시지를 얻을
<?
require 'stuff/facebook-php/src/facebook.php';
$facebook = new Facebook(array(
'appId' => 'my app id',
'secret' => 'secret',
));
// Get User ID
$user = $facebook->getUser();
?>
:이 API를 내 헤더에 전화입니까? 감사합니다
음이다. 여는 태그는 php이어야합니다. – ThatGuy