{"id":15293619,"url":"https://github.com/steve228uk/fbimagepicker","last_synced_at":"2026-02-17T01:01:28.623Z","repository":{"id":56910273,"uuid":"80513856","full_name":"steve228uk/FBImagePicker","owner":"steve228uk","description":":camera: An image picker for Facebook","archived":false,"fork":false,"pushed_at":"2017-02-01T15:39:38.000Z","size":14404,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-02T03:40:53.291Z","etag":null,"topics":["cocoapods","facebook","image","ios","picker","swift-3"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steve228uk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-31T11:17:40.000Z","updated_at":"2019-10-25T01:33:39.000Z","dependencies_parsed_at":"2022-08-20T20:20:50.692Z","dependency_job_id":null,"html_url":"https://github.com/steve228uk/FBImagePicker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve228uk%2FFBImagePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve228uk%2FFBImagePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve228uk%2FFBImagePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steve228uk%2FFBImagePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steve228uk","download_url":"https://codeload.github.com/steve228uk/FBImagePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227668653,"owners_count":17801509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocoapods","facebook","image","ios","picker","swift-3"],"created_at":"2024-09-30T16:50:12.166Z","updated_at":"2026-02-17T01:01:28.531Z","avatar_url":"https://github.com/steve228uk.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# :camera: FBImagePicker\n### A simple drop-in image picker for Facebook\n\n![Facebook Image Picker for iOS](https://github.com/steve228uk/FBImagePicker/blob/master/Screenshots/example.gif)\n\n## Installation\n\n### CocoaPods\n\nSimply add the following dependency to your `podfile`\n\n```ruby\npod 'FBImagePicker', '~\u003e 1.0'\n```\n\n### Usage\n\n\u003e This usage example assumes that you've already setup the [Facebook SDK for iOS](https://developers.facebook.com/docs/ios/)\n\n## 1. Set the delegate\n\nFirst, set the delegate where you wish to access selected images:\n\n```swift\nimport FBImagePicker\n\nclass ViewController: UIViewController, FBImagePickerDelegate {\n\n\toverride func viewDidLoad() {\n\t\tsuper.viewDidLoad()\n\n\t\tFBImagePicker.delegate = self\n\t}\n\n\tfunc fbImagePicker(imageSelected image: UIImage?) {\n\t\tprint(\"Image selected\")\n\t}\n\n}\n```\n\n## 2. Present the picker\n\nNext, present the picker from a view controller using the following method:\n\n```swift\nFBImagePicker.present(on: self)\n```\n\n## 3. Configure the picker (Optional)\n\nBy default FBImagePicker is designed as a quick drop-in but there are a number of options that can be configured if you like to get into the nitty-gritty.\n\nThe following options are available with their defaults on `FBImagePicker.Settings`.\n\n```swift\n/// This is the title that's displayed in the navigation bar on the album selection screen\nstatic var albumsTitle = \"Facebook Albums\"\n```\n\n```swift\n/// This is the text that's displayed for the empty state in the album selection screen\nstatic var noAlbumsText = \"No Albums\"\n```\n\n```swift\n/// This is the text that's displayed for the empty state in the album selection screen\nstatic var noImagesText = \"No Images\"\n```\n\n```swift\n/// The style the status bar should be in the image picker\nstatic var statusBarStyle = UIStatusBarStyle.lightContent\n```\n\n```swift\n/// This is the tint colour used for buttons on the nav bar\nstatic var navTintColor = UIColor.white\n```\n\n```swift\n/// The tint colour of the background of the nav bar\nstatic var navBarTintColor = UIColor(hue:0.61, saturation:0.60, brightness:0.59, alpha:1.00)\n```\n\n```swift\n/// This is the text colour of the title in the nav bar\nstatic var navBarTextColor = UIColor.white\n```\n\n```swift\n/// Used to control the cross fade on images. Leave as 0 for no transition.\nstatic var imageTransitionDuration = 0.0\n```\n\n```swift\n/// This controls the offset of the infinite scroll. If you're not sure, leave this as 200.\nstatic var infiniteScrollOffset: CGFloat = 200\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve228uk%2Ffbimagepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteve228uk%2Ffbimagepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve228uk%2Ffbimagepicker/lists"}