Swift Tutorial:- Integrate Facebook login in iOS using Facebook swift SDK-(Facebook SDK Series)Part1

preview_player
Показать описание
In this video, we will learn how to add Facebook login in our swift app or integrate Facebook login SDK in IOS app using swift language. We will Facebook SDk for swift language (at the time of this video the Facebook SDK for swift is in beta).

Using Facebook Swift SDK, we will authenticate user using their Facebook credentials and ask for read permissions for their profile and email address. After successful authentication from Facebook we will get access token in order to make further requests to Facebook using our iOS app.

Рекомендации по теме
Комментарии
Автор

Big thanks for this well explained video, today I implemented this but on click of button I am getting error -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)". I used the latest Pods file & based on error I can imagine this is something related to POD side. Kindly help me to make the app working. Thanks in advance.

SandeepSingh-lgbq
Автор

If you re-make this video or create a part 2, it would be useful to include instructions and/or advice on how to deal with ALL of the different login flows that need to tested and working before submitting an app to Facebook for approval - ie: log out, switch user, user changes password outside of your app, user removes a permission they had previously granted, uninstalls/reinstalls your app from device, uninstalls/reinstalls your app from Facebook, etc... this video is great for “getting started”, but it’s really only half the story for creating an app that uses Facebook login.

Tenly
Автор

Step 5 says to connect to the AppDelegate. Any reason why you decided not to do so?

shivaskanthan
Автор

Hello, do we need to add this

Go to the Project Navigator in Xcode and select your project to see project settings.
Select Other Linker Flags for editing.
Add the flag -ObjC to Other Linker Flags for all build targets.

jobmatest
Автор

i did not get the login manager in my code plz help me out.

himanshuvyas
Автор

Also, I'm getting this error -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)" Any idea how to fix it? I've checked my info.plist and it seems to be the same as yours.

shivaskanthan
Автор

Hi, nice work but I have an query when u logout from this and can the other user have the permission to login here I mean if I logout from the device, and the other person want to login in he can login ???? Can u plz make gmail and LinkedIn also plz and waiting for the second part buddy

shaikbaji
Автор

Am unable to create app id in developers facebook page. please solve my issue. I have logged in and creating app with SampleProjectLogin name

pallavidiviti
Автор

Hey mate I'm getting a constructor error for Print(access token == \(AccessToken)")

anonymousreview
Автор

Nice video, can you please make a video on urlsession calls (get, post ) for user authentication

yogeeswarpadileti
Автор

Am not getting user ID and App ID all the details in access token..

It's like
access token = <FBSDKAccessToken :0x6000023a0190>

pallavidiviti