Home Ask Login Register

Developers Planet

Your answer is one click away!

user358448 February 2016

Unable to login to Facebook after updating to IOS 9

I can't make my app to login to facebook after i updated to IOS 9.

I'm using Facebook-iOS-SDK (4.0.1). I followed the steps from https://developers.facebook.com/docs/ios/ios9

Here is what i get:

2016-02-08 22:30:12.962 Test[46890:887841] -canOpenURL: failed for URL: "fbauth://authorize/?auth_type=rerequest&client_id=1567056303561905&default_audience=friends&display=touch&e2e=%7B%22init%22%3A1454963412954%7D&redirect_uri=fbconnect%3A%2F%2Fsuccess&response_type=token%2Csigned_request&return_scopes=true&scope=email&sdk=ios&sdk_version=4.0.1&state=%7B%22com.facebook.sdk_client_state%22%3Atrue%2C%223_method%22%3A0%2C%220_auth_logger_id%22%3A%22726D5E62-ED16-43E4-A946-1266F17C8CA4%22%7D" - error: "(null)" 2016-02-08 22:30:20.954 Test[46890:888120] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.

Any thoughts?How do i fix that?


        <key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> <true/>


Roee84 February 2016

notice the App Transport Security - now you have to connect via https (and not http)

if you want you can edit it in the plist and allow specific urls with http and not https, but this is not recommended

Post Status

Asked in February 2016
Viewed 1,389 times
Voted 12
Answered 1 times


Leave an answer

Quote of the day: live life