Titanium iOS - Facebook SSO没有返回到应用程序 [英] Titanium iOS - Facebook SSO not returning to App

查看:180
本文介绍了Titanium iOS - Facebook SSO没有返回到应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的应用程序中使用Appcelerator'Titanium添加了Facebook单点登录。这是正常工作,但是当出现已经授权的Facebook页面时,无法自动重定向到我的应用程序。



如果用户点击Okay按钮Facebook应用程序重新打开并按照惯例进行工作。我只是希望为用户摆脱额外的步骤。



任何建议?我遇到了Objective C解决方案,例如: Facebook iOS SDK是否要求用户每次使用该应用进行身份验证?



干杯,
Tom

解决方案

我相信这个问题与Facebook App没有正确设置有关,而不是直接在设备上测试,而不是模拟器。



您的Facebook应用程序应该应用以下设置。



启用:本机iOS应用程序




  • iOS软件包ID:com.yourcompany.yourapp

  • iPhone应用程序商店编号:24242423

  • 为iOS SSO配置:启用



模拟器上的测试将触发Safari由于没有安装Facebook应用程序而打开并显示授权对话框(因此您需要一个rea l设备)。将您的应用程序推送到设备并触发您的应用程序中的SSO,然后将重定向到您的应用程序,如果发生错误,已经授权或成功。



希望这有助于任何人发生这种情况。


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

解决方案

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.

这篇关于Titanium iOS - Facebook SSO没有返回到应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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