iOS Facebook登录“应用配置不允许给定URL” [英] iOS Facebook Login "Given URL is not allowed by the Application configuration"

查看:513
本文介绍了iOS Facebook登录“应用配置不允许给定URL”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

相信我,我已经阅读关于这个主题的所有其他问题。没有人解决我的问题(或甚至是相同的问题)。 Facebook登录已经为我工作完美的几个星期...直到昨天,突然它开始打破,给我这个错误。



之前,当我使用Facebook SDK logInWithReadPermissions 方法登录我的应用程序时,已经授权[应用程式名称]!并完全乐意登录我,继续前进。然后突然出现此错误:


应用程序配置不允许给定URL:一个或多个给定的URL不是允许的应用程序的设置。要使用此网址,您必须在应用的设置中添加有效的本机平台。


奇怪的部分是我没有更改任何Facebook应用的设置。这只是突然开始发生;五分钟前它工作,下一个建立它没有。然而,我查找错误消息,发现人们建议在Facebook开发人员页面上解决这个问题的很多事情...主要涉及有效的OAuth重定向URIs 字段,而不是我可以很清楚地回答你应该放在那里为一个iOS应用程序 ...他们总是说,把你的网站地址。我没有网站,我有一个应用程序...什么给了?



所以我知道我没有对Facebook开发人员区做任何更改,它打破,我试过了每一个变化,我可以在互联网上找到。所以我拉下一个旧的工作副本来测试,在不知不觉的机会,不知何故,我写的代码是问题。不;代码从一个星期前,工作完美,仍然给我相同的消息。



如果问题不在代码中,并改变的东西在FB网站不做它...我的想法。如果有其他我需要做的FB应用程序来解决这个问题,建议离开,我会给它一个尝试...如果它的工作是伟大的,但我仍然不明白为什么它打破了

解决方案

我有完全一样的问题。
其实你只需在你的应用程序设置中添加平台



这里是步骤



<
  • 打开


  • 3.从窗口中选择iOS并添加您的Bundle ID和其余信息,然后点击Save changes



    就是这样。
    希望它帮助你..所有最好的


    Believe me, I have read all the other questions on this topic. None of them solved my problem (or were even quite the same problem). Facebook login has been working perfectly fine for me for weeks... Until yesterday when suddenly it started breaking and giving me this error.

    Before yesterday, when I logged into my app with the Facebook SDK logInWithReadPermissions method, it would say "You've already authorized [app name]!" and be perfectly happy to log me in and move on. Then suddenly it started failing with this error:

    Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. To use this URL you must add a valid native platform in your App's settings.

    The weird part is I hadn't changed any of the Facebook app's settings at all. This just suddenly started happening; five minutes before it worked, next build it didn't. Nevertheless, I looked up the error message and found a ton of things people suggested to do on the facebook developer page to fix the problem... Mostly involving the Valid OAuth redirect URIs field, not that I could quite get a clear answer of what you're supposed to put in there for an iOS app... They always said to put your website address. I don't have a website, I have an app... What gives?

    So I knew I hadn't made any changes to the Facebook developer area to cause it to break, and I'd tried every change there that I could find on the internet. So I pulled down an old working copy to test that, on the off chance that somehow code I'd written was the problem. Nope; code from a week ago, that worked perfectly fine, still gives me the same message.

    If the problem isn't in the code, and changing things on the FB site doesn't do it... I'm out of ideas. If there's something else I need to do on the FB app to fix this, suggest away and I'll give it a try... And if it works that's great, but I'm still not going to understand why it broke in the first place when I didn't make any changes... Anybody able to help me out?

    解决方案

    I had exactly the same issue. Actually you just have to add platform in your app settings

    So here are the steps

    1. Open https://developers.facebook.com and select your app

    2. Settings > Basic > Add Platform

    3.Now select iOS from the window and add your Bundle ID and rest of the information and click on Save changes

    and that's it. Hope it helps you .. All the best

    这篇关于iOS Facebook登录“应用配置不允许给定URL”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    相关文章
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆