【问题标题】:Facebook Authentication using PHP $_GET ErrorFacebook 身份验证使用 PHP $_GET 错误
【发布时间】:2011-03-28 18:40:09
【问题描述】:

facebook PHP OAUTH 身份验证失败(例如,用户按下不允许)意味着 facebook 将正确的 $_GET 结尾添加到我传递的重定向 URI。例如:

www.mysite.com/facebookauth.php?error_reason=user_denied&error=access_denied&error_description=The+user+denied+your+request

那里没有问题。我可以使用 $_GET 来获取错误原因并告知用户他们做错了什么。

如果通过了,facebook 会添加

www.mysite.com/facebookauth.php#auth=WHATEVER

井号而不是问号。而且我无法使用 $_GET 获取验证码。为什么?有什么帮助吗?

【问题讨论】:

    标签: php facebook authentication


    【解决方案1】:

    这就是为什么您无法访问 url 的片段部分,它不会被发送到浏览器:Can I read the hash portion of the URL on my server-side application (PHP, Ruby, Python, etc.)?

    【讨论】:

      猜你喜欢
      • 2011-12-01
      • 1970-01-01
      • 2017-01-25
      • 2013-10-02
      • 2019-05-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多