Unable to Login Using Facebook SDK IOS Swift

5.7k Views Asked by At

I am following This tutorial but i am stuck at a point. after following all the steps mentioned when i click the login button i get this error i have also attached image of my Plist i searched for the answer and most of the solutions are talking about url in the BAsic Settings of my app. but i do not get it because i do not want to redirect to any url i just want to load the user name image of the user as per tutorial.

After achiving this i want to fetch user's information like its email address, date of birth etc

thanks in advance

enter image description here

4

There are 4 best solutions below

0
Umair Afzal On BEST ANSWER

Thanks everyone, everything else was okay but i forgot to add bundle identifier in settings. So I added a plateform "IOS" and gave my budle id there and it worked for me

1
Jayesh Miruliya On
<key>FacebookDisplayName</key>
<string>Appname</string>

not "Appname" ... not use double quotes in Appname

0
Alexander B On

Insert this in plist.info like this

<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fb1111</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>1111</string>
<key>FacebookDisplayName</key>
<string>Integration with swift</string>

<key>LSApplicationQueriesSchemes</key>
<array>
  <string>fbapi</string>
  <string>fb-messenger-api</string>
  <string>fbauth2</string>
  <string>fbshareextension</string>
</array>
2
Vivek Gajbe On

Have you make you application live ?

Please check linked image for the same
Please delete previous build and check new build for reflection.It works for me

.App make live at developer end