iOS Facebook登录“应用程序配置不允许给定URL” [英] iOS Facebook Login "Given URL is not allowed by the Application configuration"
问题描述
应用程序配置不允许URL:一个或多个给定的URL不是允许由App的设置。要使用此URL,您必须在应用程序的设置中添加有效的本地平台。
奇怪的部分是我没有更改任何Facebook应用程序的设置。这只是突然开始发生了;五分钟之前,它工作,下一次建立它没有。不过,我查看了错误消息,发现人们建议在facebook开发者页面上做了很多事情来解决问题...大部分涉及有效的OAuth重定向URI
而不是我可以很清楚地知道你应该在哪里放置一个iOS应用程序 ...他们总是说你的网站地址。我没有网站,我有一个应用程序...什么给了?
所以我知道我没有对Facebook开发人员区进行任何更改它打破了,我尝试了在互联网上可以找到的每一个变化。所以我拉下了一份旧的工作副本来测试这个问题。不;一周前的代码,工作得很好,仍然给我一样的消息。
如果问题不在代码中,并且改变FB站点上的内容不做...我没有想法。如果在FB应用程序中还有其他一些事情可以解决这个问题,建议我去试一试,如果这样做很好,但是我还是不明白为什么它会在第一个地方,当我没有做任何改变...有人能帮助我吗?
我有完全一样的问题。
其实你只需要在你的应用设置中添加平台
所以这里是步骤
-
打开
3.从窗口中选择iOS,并添加您的Bundle ID和其余信息,然后单击保存更改
< a href =https://i.stack.imgur.com/6VZx0.png =noreferrer>
就是这样。
希望它帮助你..最好的
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
Open https://developers.facebook.com and select your app
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屋!