How can I get the access token (after user had signed on)?





Appreciate if you can like this page if you find it useful! - Click "Like"

The access token is already stored in the $session. So, the easiest way is to get it from the $session object by using the following code:

$session = $facebook->getSession();
$token = $session['access_token'];



Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!