【问题标题】:Redirecting to my page重定向到我的页面
【发布时间】:2012-01-02 14:35:38
【问题描述】:

我有 ASP.Net 应用程序,并希望用户通过 IFRAME 从 facebook 访问它

应用程序位于: facebook.tk-osmica.hr/

我的设置:(删除了前导 http 以避免 stackoverflow 限制) 画布网址:facebook.tk-osmica.hr/ 画布页面:apps.facebook.com/dankotestd (raedonly)

在我的 web.config 中,我设置了 API 密钥和秘密, 和“PostAuthorizeRedirectURL=Default.aspx”

我遇到了错误:

   "error": 
      "message": "Invalid redirect_uri: Given URL is not allowed by the Application configuration.",
      "type": "OAuthException"

我被转发到 URL: https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://apps.facebook.com/dankotest2/Default.aspx&scope=user_photos

我想我应该被重定向到: https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://facebook.tk-osmica.hr/Default.aspx&scope=user_photos

但我不能这样设置。

什么是正确的配置? 谢谢!

【问题讨论】:

    标签: facebook authentication redirect


    【解决方案1】:

    您是在构建一个画布(iframed)应用程序,还是一个具有 facebook 功能的网页?如果您正在构建一个画布应用程序,那么被重定向到 https://graph.facebook.com/oauth/authorize?client_id=244980988904443&redirect_uri=http://apps.facebook.com/dankotest2/Default.aspx&scope=user_photos 是正确的。因为您的画布应用程序将存在于http://apps.facebook.com/dankotest2/Default.aspx

    【讨论】:

    • 我正在构建 IFRAME 应用程序。那为什么我会收到此错误消息?
    • 听起来像是应用设置中的配置问题。
    • 是的,你可以看到我的 Canvas URL 和 Canvas 页面,还应该配置什么(bedides API Key 和 secret)?
    猜你喜欢
    • 1970-01-01
    • 2021-11-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多