[英]Facebook's Authentication Redirection Loop
Using Facebook's example code: https://developers.facebook.com/docs/authentication/ and FB_ignited for CodeIgniter: https://bitbucket.org/deth4uall/facebook-ignited I get an infuriating redirection loop after authentication.
有沒有人遇到過這個?
我有一個 facebook auth / session / post & get variable 問題。 你可能會遇到同樣的情況。 使用header ('P3P: CP="CAO PSA OUR"');
在 html output 的頂部。
最后,我使用了 static 文件來處理 Facebook 回調,如下所示:
<?php
/*
Callback redirect to get around CodeIgniters odd clean url analness
*/
$domain = $_SERVER['SERVER_NAME'];
$controller = $_GET['controller'];
$code = $_SERVER['QUERY_STRING'];
header("Location: http://$domain/$controller?$code");
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.