浏览文章
文章信息
Facebook SDK调用错误:Cross-site request forgery validation failed. Required param "state" missing from persistent data
13453
原因:新版本的SDk
$fb = $this->facebook->newFacebook(); $helper = $fb->getRedirectLoginHelper(); try{ ... $accessToken = $helper->getAccessToken(); ... }中为了安全,$accessToken = $helper->getAccessToken();只允许读取一次。