mam problem z ustawieniem logowania przez facebook.
Problem pojawia się gdy chce pobrać dane i je wyświetlić na stronie np "witaj (nazwa użytkownika).
zrobiłem plik textowy z taką zawartością:
function get_facebook_cookie($app_id, $app_secret) { $payload = ''; foreach ($args as $key => $value) { if ($key != 'sig') { $payload .= $key . '=' . $value; } } return null; } return $args; } $cookie = get_facebook_cookie('100410860******', 'a636fa9c4522c7129b35***********'); 'https://graph.facebook.com/me?access_token=' . $cookie['access_token']));
potem za pomocą include wstawiam go na strone a w miejscu gdzie ma się wyświetlić imię i nazwisko wstawiam:
wyskakuje mi błąd:
stdClass Object ( [error] => stdClass Object ( [message] => An active access token must be used to query information about the current user. [type] => OAuthException [code] => 2500 ) ) Witaj,