Facebook Login using swift | Facebook Integration
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- Getting Started with the Facebook SDK for iOS
Step 1: Set Up Your Facebook App
Step 2: Install the iOS Facebook SDK using CocoaPods
There are several ways you can install the iOS Facebook SDK but for ease, I will only cover CocoaPods.
a) add these lines in pod file
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
b) pod install
Step 3: Configure Your Info.plist
add below code in info plist file
CFBundleURLTypes
CFBundleURLSchemes
fb{your-app-id}
FacebookAppID
{your-app-id}
FacebookDisplayName
{your-app-name}
LSApplicationQueriesSchemes
fbapi
fb-messenger-share-api
fbauth2
fbshareextension
Step 4: Use in app View Controller
Complete Project Code Link: github.com/uma...
Documentation links:
/ ios
/ getting-started
#loginwithfacebook #swiftsdk #swift5
excuse me bro kya isma koi billing ka scene ha?
hello the begining is audible, but i didn't understand the end can you help me? I am in desperate need of help
Please ask where u need help
@@UmarFarooqTV when you start copying stuff from 13:05
@@lerobinalias8952 Well i just copied to save the time its basically facebook sdk method stub.
@@lerobinalias8952 1) created login manager instance
2) logout if previously login
3) sdk method login request with permissions
4) parse results if its successful then fetch the profile data inside method getFBUserData.
đội cái rế nồi lên đầu là đỉnh rồi