Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5756] Error login facebook on iOS

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-06-09T10:02:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsfacebook, ios
Reportersaid chaouche
AssigneeShak Hossain
Created2018-06-03T13:48:20.000+0000
Updated2019-02-12T16:57:00.000+0000

Description

The is a regression in Ti.facebook module, we can't login twice login -> logout -> login I have this error {quote} {"success":false,"code":308,"cancelled":false,"error":"Error 308 detected: Please enable keychain-sharing in your projectby creating an Entitlements file. For more information check the\"Migrate to iOS 10\" section in https://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook","bubbles":true,"type":"login","source":{},"cancelBubble":false}{quote} It's work correctly with module version 5.6.0

Comments

  1. Sharif AbuDarda 2018-06-04

    Hello, Please share a full reproducible sample code/ project with the module sample code for login. We will test the issue in our environment. Thanks.
  2. Mostafizur Rahman 2018-06-07

    Hello, Just passing as follow here.Are you able to get that sorted out?  Please let us know if you need more help with this issue. Thanks
  3. Martyn Joyce 2018-07-08

    FYI I have this same problem however it looks to be resolved in the pre-release version of Ti.Facebook 5.9.0
  4. Francisco Antonio Duran Ramirez 2019-02-12

    Hello. Good afternoon. Please reopen this ticket since this issue is happening with the latest version of the facebook module. Basically to reproduce the issue, you will need to do the following : 1) To have installed the facebook app 2) To use the latest version of the facebook module in the project: https://github.com/appcelerator-modules/ti.facebook/releases/download/ios-5.9.1/facebook-iphone-5.9.1.zip 3) Make sure you have cleaned the cookies from the device. 4) [Please download the project from this link.](https://fs03n5.sendspace.com/dl/58ab9eef3c022ee0280ab90738f1d278/5c62fa4d741e5525/4v3ozw/fbook.zip) 6) Configure the facebook ids with your own in the tiapp.xml, and the fie of entitlements with the application id. 5) Click on Facebook Log In in the app. 6) NOTE: Please use the option *Log in with the Facebook app* DO NOT use the option *Log in with phone or email*, and follow the process of authentication. 7) Click on Facebook Log Out in the app. 8) Try again clicking the Facebook Log In in the app. 9) You will get the message on the console of:
       {"success":false,"code":308,"cancelled":false,"error":"Error 308 detected: Please enable keychain-sharing in your projectby creating an Entitlements file. For more information check the\"Migrate to iOS 10\" section in https://docs.appcelerator.com/platform/latest/#!/api/Modules.Facebook","bubbles":true,"type":"login","source":{},"cancelBubble":false}
       
    Tested with the following specs: Titanium SDK: 7.5.0.GA Axway Appcelerator Studio, build: 5.1.1.201809051655 Node version : v8.9.1 Device : iPhone 6 iOS Version : 12.1.4 Facebook module versions : iOS: https://github.com/appcelerator-modules/ti.facebook/releases/tag/ios-5.9.1 Thanks, and best, Antonio.

JSON Source