Skip to content

Instantly share code, notes, and snippets.

@Khanashima
Created April 19, 2014 11:45
Show Gist options
  • Save Khanashima/11082051 to your computer and use it in GitHub Desktop.
Save Khanashima/11082051 to your computer and use it in GitHub Desktop.
【facebook php sdk】アクセストークンを2ヶ月にする ref: http://qiita.com/kiimiiis/items/543ee5861563b77f9bfb
$config = array(
'appId' => APPID,
'secret' => SECRET
);
$facebook = new Facebook($config);
$facebook->setExtendedAccessToken();
$longToken = $facebook->getAccessToken();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment