簡體   English   中英

Facebook登錄重定向不起作用

[英]facebook login redirection is not working

我正在嘗試使用Facebook登錄名來獲取用戶數據,郵件URL就像這樣http://www.mawk3y.net/news2/news_details.php?id=34 (您可以自己對其進行測試),只需向下滾動即可會看到一個按鈕:使用facebook登錄,您將使用以下代碼將您轉到另一個頁面fb.php

  <?php
$referrer = $_SERVER['HTTP_REFERER'];
?>
<iframe src="https://www.facebook.com/plugins/registration?client_id=id here&redirect_uri=<?php echo $referrer; ?>&source=fb&fields=name,birthday,gender,location,email,first_name,last_name"
    scrolling="auto"
    frameborder="no"
    style="border:none"
    allowTransparency="true"
    width="100%"
    height="530">
</iframe>

問題是網址重定向無法正常工作,它使我返回到沒有查詢字符串“ source = fb”的引薦來源網頁

回顯網址時,請使用urlencode($url)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM