... //used to get the user id $me = $ facebook-> api('/me'); $token = $ facebook->getAccessToken(); ...
stackoverflow.com