1

I've been trying to implement Facebook log in. As the titles says, I'm using Xcode 7.1, Swift 2.1, iOS 9.1, Parse SDK (ParseFacebookUtilsV4).

I have read Parse doc and Facebook doc, and already setup the .plis according to iOS 9 requirements.

The thing is, when the app runs and calls logInInBackgroundWithReadPermissions(permissions:, block:), I'm getting:

-canOpenURL: failed for URL: "fbauth2:/" - error: "(null)"

Does anyone knows how to do this?

rici
  • 234,347
  • 28
  • 237
  • 341
eMdOS
  • 1,693
  • 18
  • 23

1 Answers1

0

You might need to add this to the plist as well. Not sure if it was documented on the Facebook docs.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbapi</string>
    <string>fb-messenger-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>`enter code here`
</array>

Each item is for a different part of Facebook SDKs so you might only need to add the fbauth2 one. The others are there in case you need them.

Alexander Li
  • 781
  • 4
  • 12
  • Facebook doc is mentioning that, actually, Facebook suggests different lists of arrays and/or strings based on sdk version used for, but is doesn't work. – eMdOS Nov 02 '15 at 15:05