2

I'm trying to implement the login of an app with facebook but every time I try to login, it suggests opening the wrong app.

I've tried some things I found over here but it didn't work.

On facebook's developers page I've added a suffix:

developers page

And my .plist is the following:

enter image description here

Does anyone knows what's going on?

Thanks in advance.

Amadeu Andrade
  • 181
  • 1
  • 12
  • Hi, Were you able to solve the problem? I have a similar problem. In my case, another app has "Login with Facebook app" feature and when the user taps on it, it suggests the user to open in my app. Do you know on which side the problem is? – Karanveer Singh Jul 29 '17 at 07:59
  • Not yet @KaranveerSingh. That was exactly my problem. – Amadeu Andrade Jul 30 '17 at 10:23
  • I found the problem. The problem was on my side which means that in your case, the problem is on the other app's side. – Karanveer Singh Aug 01 '17 at 06:46
  • Hello @KaranveerSingh, I'm facing the same problem you encountered. Could you tell me what problem you had on your side and how you fixed it? – Donca Bogdan Sep 11 '17 at 10:04
  • @DoncaBogdan Make sure you have added the following in your .plist. LSApplicationQueriesSchemes fbapi fb-messenger-api fbauth2 fbshareextension – Karanveer Singh Sep 12 '17 at 06:23
  • @DoncaBogdan That was the problem on my side. I had not added the above code. Also, do enable "Single Sign On". – Karanveer Singh Sep 12 '17 at 06:24
  • @KaranveerSingh, thanks a lot for the quick response! – Donca Bogdan Sep 12 '17 at 10:55
  • for more detailed explaination refer to this link: [enter link description here](https://stackoverflow.com/questions/5993996/two-ios-apps-using-the-same-facebook-app-id-is-it-possible) – Ashwin J Sep 02 '20 at 14:47

1 Answers1

1

Just as workaround you can remove fb ids like

<string>fbauth2</string>

under

<key>LSApplicationQueriesSchemes</key>

from Info.plist

This leads to the fact that the application will try to authorize via safari, not via Facebook App.

Argus
  • 2,241
  • 1
  • 22
  • 27