FacebookImagePicker alternatives and similar libraries
Based on the "Images" category.
Alternatively, view FacebookImagePicker alternatives based on common mentions on social networks and blogs.
-
SDWebImage
Asynchronous image downloader with cache support as a UIImageView category -
Kingfisher
A lightweight, pure-Swift library for downloading and caching images from the web. -
SwiftGen-Assets
The Swift code generator for your assets, storyboards, Localizable.strings, … — Get rid of all String-based APIs! -
GPUImage 2
GPUImage 2 is a BSD-licensed Swift framework for GPU-accelerated video and image processing. -
HanekeSwift
A lightweight generic cache for iOS written in Swift with extra love for images. -
YPImagePicker
📸 Instagram-like image picker & filters for iOS -
SkyFloatingLabelTextField
A beautiful and flexible text field control implementation of "Float Label Pattern". Written in Swift. -
AlamofireImage
AlamofireImage is an image component library for Alamofire -
UIImageColors
Fetches the most dominant and prominent colors from an image. -
Brightroom
📷 A composable image editor using Core Image and Metal. [Moved to: https://github.com/FluidGroup/Brightroom] -
GPUImage 3
GPUImage 3 is a BSD-licensed Swift framework for GPU-accelerated video and image processing using Metal. -
APNGKit
High performance and delightful way to play with APNG format in iOS. -
SwiftSVG
A simple, performant, and lightweight SVG parser -
Lightbox
:milky_way: A convenient and easy to use image viewer for your iOS app -
TinyCrayon
A smart and easy-to-use image masking and cutout SDK for mobile apps. -
SwiftGif
[UNMAINTAINED] 🌠 A small UIImage extension with gif support -
Sharaku
(Not maintained)Image filtering UI library like Instagram. -
CTPanoramaView
A library that displays spherical or cylindrical panoramas with touch or motion based controls. -
ImageScout
A Swift implementation of fastimage. Supports PNG, GIF, and JPEG. -
FMPhotoPicker
A modern, simple and zero-dependency photo picker with an elegant and customizable image editor -
AXPhotoViewer
An iOS/tvOS photo gallery viewer, useful for viewing a large (or small!) number of photos. -
PassportScanner
Scan the MRZ code of a passport and extract the firstname, lastname, passport number, nationality, date of birth, expiration date and personal numer. -
XAnimatedImage
XAnimatedImage is a performant animated GIF engine for iOS written in Swift based on FLAnimatedImage -
Viewer
Image viewer (or Lightbox) with support for local and remote videos and images -
JLStickerTextView
add text(multiple line support) to imageView, edit, rotate or resize them as you want, then render the text on image -
UIImageView-BetterFace-Swift
autoresize images and if any face discovered refine the position of the image. -
Harbeth
🎨 GPU accelerated image / video and camera filter library based on Metal. Support macOS & iOS. 图像、视频、相机滤镜框架 -
MapleBacon
🍁🥓 Lightweight and fast Swift library for image downloading, caching and transformations -
Moa
An image download extension of the image view written in Swift for iOS, tvOS and macOS. -
KFSwiftImageLoader
An extremely high-performance, lightweight, and energy-efficient pure Swift async web image loader with memory and disk caching for iOS and Watch. -
ImageLoader
A lightweight and fast image loader for iOS written in Swift. -
MCScratchImageView
A custom ImageView that is used to cover the surface of other view like a scratch card, user can swipe the mulch to see the view below. -
ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. -
DTPhotoViewerController
A fully customizable photo viewer ViewController to display single photo or collection of photos, inspired by Facebook photo viewer. -
SwiftColorArt
font schema generator according image colours. -
ZImageCropper
A Swift 5 repo to crop image in any shape. -
LetterAvatarKit
📲 Use this extension 🧩 to create letter-based avatars or placeholders 🎭 to be utilized within your app
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of FacebookImagePicker or a related project?
README
Features • Installation • Usage • Translation • License
GBHFacebookImagePicker is Facebook's album photo picker written in Swift, built to provide a simple way to pick picture into Facebook account. The picker provides a simple interface like the native iOS photo picker. This picker takes care of all authentication (from the web or with the native Facebook app) when necessary. If the photo's permission isn't accepted during the login, the picker prompts another permission's request.
Screenshot / Demo
Features
- [x] Login with Facebook SDK and display user's Albums or tagged photos
- [x] Display pictures of each albums
- [x] Handling denied Facebook photo's permission
- [x] Multiple selection in one album
- [x] Select all
Example
In your terminal :
pod try GBHFacebookImagePicker
Or to run the example project manually, clone the repo, and run pod install
from the Example directory first.
Don't forget to replace the current Facebook App's ID with your own in the plist file (Open as > Source code). Like this :
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>fb<YOUR_FACEBOOK_APP_ID></string>
</array>
</dict>
</array>
<key>FacebookAppID</key>
<string><YOUR_FACEBOOK_APP_ID></string>
Just in case, for public application (which can be use in the AppStore), you need to send your Facebook's App in review to have user's photos permission.
Usage
You need to set up your application correctly to work with Facebook : https://developers.facebook.com/docs/ios/getting-started and https://developers.facebook.com/docs/ios/ios9
Import the library :
import GBHFacebookImagePicker
- Then, implement the
GBHFacebookImagePickerDelegate
protocol :
// MARK: - GBHFacebookImagePicker Protocol
func facebookImagePicker(imagePicker: UIViewController,
successImageModels: [GBHFacebookImage],
errorImageModels: [GBHFacebookImage],
errors: [Error?]) {
// Append selected image(s)
// Do what you want with selected image
self.imageModels.append(contentsOf: successImageModels)
}
func facebookImagePicker(imagePicker: UIViewController, didFailWithError error: Error?) {
print("Cancelled Facebook Album picker with error")
print(error.debugDescription)
}
// Optional
func facebookImagePicker(didCancelled imagePicker: UIViewController) {
print("Cancelled Facebook Album picker")
}
// Optional
func facebookImagePickerDismissed() {
print("Picker dismissed")
}
The imageModel contain :
public class FacebookImage {
public var image: UIImage? // The image, not nil only if image is selected
public var normalSizeUrl: String? // Normal size picture url
public var fullSizeUrl: String? // Full size source picture url
public var imageId: String? // Picture id
}
- Display picker :
let picker = FacebookImagePicker()
picker.presentFacebookAlbumImagePicker(from: self, delegate: self)
Customisation
You can apply some customisation. To do it you can use the [FacebookPickerConfig structure](CUSTOMISATION.md).
Aditionals informations
- About tagged photos : the tagged photos are displayed in an album (hide by default, see customisation section to display it) with the name "Photos of You". You can change this default name in the settings. The tagged album's cover is the facebook account profile picture, which are retrieved with a special call to the graph API.
Translation
FacebookImagePicker is currently written in english. If you need translation for the permission popup (or whatever thing), just add this line in your localized file :
"Pictures" = "<your_translation>";
"Oups" = "<your_translation>";
"You need to allow photo's permission." = "<your_translation>";
"Allow" = "<your_translation>";
"Close" = "<your_translation>";
"Album(s)" = "<your_translation>";
"Photos of You" = "<your_translation>";
""No picture(s) in this album." = "<your_translation>";"
Requirements
- Xcode 11.4
- iOS 9.0+ target deployment
- FBSDKCoreKit, FBSDKLoginKit (>= 7.0 for the v5.0)
- Facebook Application, see usage for explaination
- Swift 3, 4, 4.2 or 5.1 project
Installation
FacebookImagePicker is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "GBHFacebookImagePicker"
pod "GBHFacebookImagePicker", '~> 2.4' # For swift 4.0
pod "GBHFacebookImagePicker", '~> 1.3.1' # For Swift 3.1
Communication
- If you need help, open an issue.
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request and read the [contributing file](CONTRIBUTING.md).
Author
Florian Gabach, [email protected]
License
FacebookImagePicker is available under the [MIT license](LICENSE).
If your application use this picker consider to add the licence in your Credits/About section. You can use this library to do it.
*Note that all licence references and agreements mentioned in the FacebookImagePicker README section above
are relevant to that project's source code only.