Facebook SDK returned an error: Cross-site request forgery validation failed. The “state” param from the URL and session do not match

后端 未结 25 1025
南方客
南方客 2020-12-01 01:37

i\'m trying to get Facebook user id using the php sdk like this

$fb = new Facebook\\Facebook([
    \'app_id\' => \'11111111111\',
    \'app_secret\' =>         


        
25条回答
  •  不思量自难忘°
    2020-12-01 02:36

    In my case i have checked error and found error which lead me to solution with executing code:

    date_default_timezone_set('Europe/Istanbul');
    

    before script. Worked like a charm. For your location check: timezones.europe.php

提交回复
热议问题