Titanium iOS - Facebook SSO not returning to App

怎甘沉沦 提交于 2019-12-11 04:58:07

问题


I've recently added Facebook Single Sign On within my application using Appcelerator' Titanium. Which is working nicely but is failing to redirect back to my application automatically when presented with the "Already Authorized" facebook page.

If the user clicks the "Okay" button within facebook the Application re-opens and works as per usual. I'm just looking to get rid of that extra step for users.

Any suggestions? I've come across Objective C solutions such as : Does the Facebook iOS SDK require the user to authenticate every time they use the app?

Cheers, Tom


回答1:


I believe the issue was related to the Facebook App not being setup properly and not directly testing on a device instead of the simulator.

The following settings should be applied within you Facebook Application.

Enable : Native iOS App

  • iOS Bundle ID: com.yourcompany.yourapp
  • iPhone App Store ID: 24242423
  • Configured for iOS SSO: Enabled

Testing on the simulator will trigger Safari to open and show the Authorization dialog due to the Facebook App not being installed (hence why you need a real device). Pushing your app to the device and triggering the SSO within your application will then redirect back to your application if an error, already authorized or success occurs.

Hope this helps anyone that's had this occur.



来源:https://stackoverflow.com/questions/11445233/titanium-ios-facebook-sso-not-returning-to-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!