简体   繁体   English

应用程序配置错误,安装Facebook登录IOS Facebook应用程序

[英]App is misconfigured for Facebook login IOS Facebook app installed

I saw this link enter link description here But it doesn't solve my problem. 我看到这个链接在这里输入链接描述但它并没有解决我的问题。

I downloaded the latest Facebook sdk 3.1.1 The original SessionLoginSample provided with sdk works fine. 我下载了最新的Facebook sdk 3.1.1原始的SessionLoginSample随sdk提供的工作正常。 I made the following changes and the result is: App is misconfigured for Facebook login Where is my mistake? 我做了以下更改,结果是: 应用程序错误配置为Facebook登录我的错误在哪里?


I created a new sample Facebook app following step by step the Facebook doc: Facebook App Image on Flickr 在Flickr上逐步推出了Facebook doc: Facebook App Image,创建了一个新的样本Facebook应用程序

I loaded in xCode the original SessionLoginSample and I changed only the bundleId and the Facebook ID: xCode plist image on flickr 我在xCode中加载了原始的SessionLoginSample,我在flickr上只更改了bundleId和Facebook ID: xCode plist图像

i experienced the same problem many times. 我经历了很多次同样的问题。 First make sure you have your Facebookappid set in your property list correctly. 首先确保正确地在您的属性列表中设置了您的Facebookappid。 Then go to facebook account settings and delete your ios app from applications. 然后转到Facebook帐户设置并从应用程序中删除您的ios应用程序。 then go to developer settings of facebook for your ios app.Make sure the app id is correct and also make sure that the bundle identifier is also same as your propertylist in xcode.It should be working afterwards 然后转到你的ios app的facebook的开发者设置。确保app id是正确的,并确保bundle标识符也与xcode中的属性列表相同。之后应该正常工作

UPDATED : You do not need to delete the app.Try delete the app from your Facebook settings first.Then go to your Facebook app on iOS and log out.Remove your own app from the device and reinstall (without loving in to your account).Then you try to connect from your own app Facebook will prompt and ak your username and password and it will not return to your app.You clsoe the app and return to your own app manually.When you try to connect again in your own app FB it will ask you for permissions. 更新:您无需删除应用程序。请先尝试从您的Facebook设置中删除该应用程序。然后转到iOS上的Facebook应用程序并注销。从设备上移除您自己的应用程序并重新安装(无需加入您的帐户)然后,当您尝试从自己的应用程序连接时,Facebook将提示并提取您的用户名和密码,它将不会返回到您的应用程序。您可以手动关闭应用程序并返回到您自己的应用程序。当您尝试在自己的应用程序中再次连接时FB会询问你的权限。 I reproduced the problem somehow and fixed like this. 我以某种方式重现了这个问题并修复了这个问题。

By the way i also set the App Type: setting in advanded settings to Native/Dssktop. 顺便说一下,我还将应用类型:设置在先进设置中设置为Native / Dssktop。

确保按照以下准则正确配置您的应用程序https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/检查您是否按照您在应用配置的原生ios设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM