Simple and light weight facebook login library for UIKit & SwiftUI

Last update: Jul 3, 2022

MjFbLogin

Simple and light weight facebook login library which provides support for UIKit & SwiftUI

Version License Platform UIKit SwiftUI

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

How to use

  • Step-1 Install Pod: Add pod 'MjFbLogin' in your pod file and install pod.
pod 'MjFbLogin'
  • Step-2 Import Library: Add an extension (FbLoginStatus) in your View or ViewController & add its required methods, now create an instance of FacebookLoginController() class and call beginFbLogin() method on your button click event.

Screenshot 2022-07-02 at 11 07 59 PM

  • Step-3 Configure Info.plist: In Xcode right-click on Info.plist, and choose Open As Source Code. Copy and paste the following XML snippet into the body of your file (...), replacing [APP_ID] with Facebook application id, [CLIENT_TOKEN] value found under Settings > Advanced > Client Token in your App Dashboard and [APP_NAME] with Facebook application name
<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fb[APP_ID]</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>[APP_ID]</string>
<key>FacebookClientToken</key>
<string>[CLIENT_TOKEN]</string>
<key>FacebookDisplayName</key>
<string>[APP_NAME]</string>
<key>FacebookAutoLogAppEventsEnabled</key>
<true/>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<true/>

Requirements

  • iOS 9+
  • Xcode 11+

Installation

MjFbLogin is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MjFbLogin'

Author

Mohammad Jeeshan

mohammad.jeeshan.91@gmail.com

License

MjFbLogin is available under the MIT license. See the LICENSE file for more info.

Social Media

Please follow me on social media

  • Github
  • Twitter
  • Medium

GitHub

https://github.com/MjCodingCamp/MjFbLogin
You might also like...

Library for creating swipe actions for any SwiftUI View

SwipeActions Library for creating swipe actions for any SwiftUI View, similar to

Aug 9, 2022

Scroller - You can animate in individual views based on scroll position. Developed with SwiftUI. This library supports iOS/macOS

Scroller You can animate in individual views based on scroll position. Developed

Aug 1, 2022

SwiftUI animated image view that works on iOS and layout just as SwiftUI.Image

SwiftUI.AnimatedImage SwiftUI animated image view that works on iOS and layout just as SwiftUI.Image Screen.Recording.2021-07-31.at.02.18.33.mov Insta

Jul 25, 2022

Swiftui-animation-observer - Track SwiftUI animation progress and completion via callbacks

Swiftui-animation-observer - Track SwiftUI animation progress and completion via callbacks

SwiftUI Animation Observer Track SwiftUI animation progress and completion via c

Jul 6, 2022

A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level - layers, springs, chain-able animations and mixing view and layer animations together!

A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level - layers, springs, chain-able animations and mixing view and layer animations together!

ver 2.0 NB! Breaking changes in 2.0 - due to a lot of requests EasyAnimation does NOT automatically install itself when imported. You need to enable i

Aug 5, 2022

An elegant and flexible tweening library for iOS and tvOS.

An elegant and flexible tweening library for iOS and tvOS.

PMTween is an elegant and flexible tweening library for Objective-C, currently supporting the iOS and tvOS platforms. It offers sensible default funct

Jul 26, 2022

The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.

The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.

The Effects Library allows developers to create sophisticated and realistic particle systems such as snow, fire, rain, confetti, fireworks, and smoke with no or minimal effort.

Jul 31, 2022

Simple and powerful animated progress bar with dots

Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 8.0+ Swift 3.0+ Installatio

Apr 1, 2021

Simple UIButton subclass with additional state change animations (e.g. backgroundColor) and missing features

Simple UIButton subclass with additional state change animations (e.g. backgroundColor) and missing features

SimpleButton UIButton subclass with animated, state-aware attributes. Easy to subclass and configure! Full API docs Usage Just create your own SimpleB

May 27, 2022
Related tags
Facebook's Pop Framework, By Examples
Facebook's Pop Framework, By Examples

Facebook's Pop Framework, By Examples --- This project is a tutorial (Check tutorial here) for how to use Pop framework by Facebook. Its very easy and

Aug 1, 2022
Lightweight animation library for UIKit
Lightweight animation library for UIKit

MotionAnimation Lightweight animation library for UIKit in Swift Checkout the Examples folder for more. Consider MotionAnimation as a extremely simpli

May 28, 2022
Match animations in SwiftUI and UIKit/AppKit
Match animations in SwiftUI and UIKit/AppKit

MatchedAnimation Match animations in SwiftUI and UIKit/AppKit. /// Draw a box in

Jul 3, 2022
Fluid - Use a declarative syntax to build your user interface using UIKit like SwiftUI
Fluid - Use a declarative syntax to build your user interface using UIKit like SwiftUI

Fluid Fluid is powered by ResultBuilder and a custom layout engine. You can uses

Apr 13, 2022
SwiftUI-Text-Animation-Library - Text animation library for SwiftUI
SwiftUI-Text-Animation-Library - Text animation library for SwiftUI

⚠️ This repository is under construction. SwiftUI Text Animation Library Make yo

Jul 16, 2022
This library for animating text. Developed with SwiftUI. This library supports iOS/macOS.

AnimateText This library for animating text. Developed with SwiftUI. This library supports iOS/macOS. Screenshot AnimateText.mp4 Example https://fabul

Aug 2, 2022
A simple ticker library for iOS
A simple ticker library for iOS

A Swift library for animating labels and text fields Installation Manually: Simply copy the QuickTicker.Swift file to your project (it is located in Q

Jul 8, 2022
RetroBubbleText - A simple effect used in Retrogram which renders text with a fun bubble-style outline in SwiftUI
RetroBubbleText - A simple effect used in Retrogram which renders text with a fun bubble-style outline in SwiftUI

Retro Bubble Text This is a simple effect used in Retrogram which renders text w

Jan 22, 2022
Fortune spinning wheel library built using SwiftUI, supports dynamic content.
Fortune spinning wheel library built using SwiftUI, supports dynamic content.

Fortune Wheel Fortune spinning wheel ?? library built using SwiftUI, supports dynamic content. Preview - Spin Wheel ⚙️ CocoaPods Installation FortuneW

Jul 7, 2022