dongzhuifeng1843 2018-02-14 15:14
浏览 76
已采纳

Facebook登录重定向问题与新的Facebook政策

According to new facebook policy. You cannot redirect to URLs that are not stated in **Valid OAth Redirect URI** from March onwards.

In March, we're making a security update to your app settings that will invalidate calls from URIs not listed in the Valid OAuth redirect URIs field below.This update comes in response to malicious activity we saw on our platform, and we want to protect your app or website by requiring a new strict mode for redirect URIs. Learn More

Here are 5 out of the 8 of your URIs that will be invalidated by this change.

But my problem is that my uris are dynamic. It has get parameters after it.

http://www.website.com/fb/login.php?redirect=http%3A%2F%2Fwww.website.com%2Fapps%2F456

http://www.website.com/fb/login.php?redirect=http%3A%2F%2Fwww.website.com%2Fapps%2F123

http://www.website.com/fb/login.php // This alone does not seem to work
  • 写回答

1条回答 默认 最新

  • drozwmi5440 2018-02-14 19:56
    关注

    I -too- had the same problem. I solved it by adding my OAuth redirect URI as a argument to the getAccessToken function call:

    $redirectLoginHelper->getAccessToken("https://www.example.com/myfacebookcallback")
    

    If no argument is sent into that function the SDK generates the redirect URI by itself which should work but in my case it didn't.

    Hope this helps someone.

    source: https://stackoverflow.com/a/39051948/4872547

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?