PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 16, 2022

[FIXED] How to make facebook login works with firebase Swift

 July 16, 2022     facebook-login, firebase, swift     No comments   

Issue

i'm using firebase and i'm trying to implement facebook login. When i'm tapping on the button, i get this error

App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:].

But, my app id is set into the info.plist. I have checked and all is set fine.


 <key>CFBundleURLTypes</key>
  <array>
    <dict>
    <key>CFBundleURLSchemes</key>
    <array>
      <string>fb45xxxxxxxx</string>
    </array>
    </dict>
  </array>
  <key>FacebookAppID</key>
  <string>4524xxxxxxxxxx</string>
  <key>FacebookDisplayName</key>
  <string>Licenta</string>
  <key>LSApplicationQueriesSchemes</key>
  <array>
    <string>fbapi</string>
    <string>fbapi20130214</string>
    <string>fbapi20130410</string>
    <string>fbapi20130702</string>
    <string>fbapi20131010</string>
    <string>fbapi20131219</string>
    <string>fbapi20140410</string>
    <string>fbapi20140116</string>
    <string>fbapi20150313</string>
    <string>fbapi20150629</string>
    <string>fbapi20160328</string>
    <string>fbauth</string>
    <string>fb-messenger-share-api</string>
    <string>fbauth2</string>
    <string>fbshareextension</string>
  </array>

How can i solve this issue ?


Solution

There is an open bug on this:

https://github.com/facebook/facebook-ios-sdk/issues/1745

You can use version <= 9.1.0 until they fix this. If using CocoaPods, add this lines to your Podfile and then run "pod update":

pod 'FBSDKCoreKit', '~> 9.1.0'
pod 'FBSDKLoginKit', '~> 9.1.0'


Answered By - Shai Alkoby
Answer Checked By - David Marino (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing