floriangbh / facebookimagepicker Goto Github PK
View Code? Open in Web Editor NEWFacebookImagePicker is Facebook album photo picker written in Swift.
Home Page: http://floriangabach.fr
License: MIT License
FacebookImagePicker is Facebook album photo picker written in Swift.
Home Page: http://floriangabach.fr
License: MIT License
After including the library in the podfile and doing 'pod install' in terminal, terminal lists this library among the pods successfully installed. However, I'm getting a 'no such module' error upon trying to import GBHFacebookImagePicker. I have tried restarting Xcode and reinstalling the pod. There was another issue with this error, but the poster closed it without a solution.
Xcode Version :- Version 8.1 (8B62)
Swift version 3.0.1
Simulator Version :- 10.1
When I Click The Button To Pick Image From Facebook
It asked for permission first and i allowed it.
it then loads a blank page and i get this in the console.
2016-12-16 14:04:32.039 MemE[7911:99405] -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2016-12-16 14:04:32.041 MemE[7911:99405] Falling back to storing access token in NSUserDefaults because of simulator bug
2016-12-16 14:04:32.046 MemE[7911:99405] -canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
2016-12-16 14:04:41.582216 MemE[7911:106868] [] nw_host_stats_add_src recv too small, received 24, expected 28
2016-12-16 14:04:41.597632 MemE[7911:106868] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
2016-12-16 14:04:41.611015 MemE[7911:106868] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
[x86_64] libnetcore-856.20.4
0 libsystem_network.dylib 0x0000000105f8e682 __nw_create_backtrace_string + 123
1 libnetwork.dylib 0x0000000107d06932 nw_socket_add_input_handler + 3100
2 libnetwork.dylib 0x0000000107ce44f4 nw_endpoint_flow_attach_protocols + 3768
3 libnetwork.dylib 0x0000000107ce3511 nw_endpoint_flow_setup_socket + 563
4 libnetwork.dylib 0x0000000107ce2270 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
5 libnetwork.dylib 0x0000000107cfd44d nw_endpoint_handler_path_change + 1261
6 libnetwork.dylib 0x0000000107cfce7c nw_endpoint_handler_start + 570
7 libnetwork.dylib 0x0000000107d14ae5 nw_endpoint_resolver_start_next_child + 2240
8 libdispatch.dylib 0x0000000105d0b980 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x0000000105d350cd _dispatch_client_callout + 8
10 libdispatch.dylib 0x0000000105d12e6b _dispatch_queue_serial_drain + 236
11 libdispatch.dylib 0x0000000105d13b9f _dispatch_queue_invoke + 1073
12 libdispatch.dylib 0x0000000105d163b7 _dispatch_root_queue_drain + 720
13 libdispatch.dylib 0x0000000105d1608b _dispatch_worker_thread3 + 123
14 libsystem_pthread.dylib 0x00000001060de4de _pthread_wqthread + 1129
15 libsystem_pthread.dylib 0x00000001060dc341 start_wqthread + 13
Hi,
I get the error found in the title even though I add the protocol subs to fix it, but then the same error comes back.
This is what's not recognized as part of the protocol even though it's what the autocomplete fills in:
func facebookImagePicker(imagePicker: UIViewController, successImageModels: [FacebookImage], errorImageModels: [FacebookImage], errors: [Error?]) {
allPhotos.append(contentsOf: successImageModels)
collectionView.reloadData()
}
I'm running the most recent version of all pods.
How do I fix this?
Is there any way to crop the selected photo into a square image after selecting from an album? Similar to imagePicker.allowsEditing = true? Awesome work!
CocoaPods version doesn't have the code with the fixes for Swift 4.2 (pushed 22 days ago).
Please make a new release and push to CocoaPods.
Thanks!
Hi,
Why does the picker gets cleared on selection? It then remains with an endless spinner, not really waiting for anything.
Thanks,
H.
Hi happy to finally found fbimagepicker that written in swift! Btw I've question, does this lib support multiple photos picker like oceanlabs?
Why is selectedBorderWidth & selectedBorderColor configuration removed?
Is it possible to apply the same functionality without settings these settings?
I have installed using pods, and i checked it's version. It's shopwing me latest version 1.1.8
but in projects, i am not able to see structure like Model, View, Controller as in your demo as well as not getting some files like GBHSelectedView etc. Please see screenshots from below links.
Screenshot From your demo:-
http://prntscr.com/f71615
Screenshot of pod installation:-
http://prntscr.com/f714qo
Screenshot of my Demo:-
http://prntscr.com/f714qo
Please let me know what's wrong i did.
I am writing an iOS app, in which the base of the application is written in Objective-C. I however am writing a file in Swift, and am using this Swift Facebook image picker, with pod FBSDKCoreKit 4.29 and FBSDKLoginKit 4.29 in my podfile. My App delegate is also in Objective-C.
When I activate this FacebookImagePicker while using the app, I am again prompted to login with Facebook, and if I login the screen is white and blank. Any idea why?
I want to convert the GBHFacebook images from [GBHFacebookImage] into Nsdata for uploading of images picked from album picker to JSONAPI. Please provide me with sufficient convertion codes and respond as soon as possible.
I ran pod update GBHFacebookImagePicker
and it did not pull the latest facebook core / login kits. Is there a way to run command to get 5.5.0 Facebook SDK?
Installing FBSDKCoreKit 4.42.0 (was 4.40.0 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing FBSDKLoginKit 4.42.0 (was 4.40.0 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
Installing GBHFacebookImagePicker 2.6.0 (was 2.5.1 and source changed to `https://github.com/CocoaPods/Specs.git` from `https://github.com/cocoapods/specs.git`)
When I launch the picker, I always get the authorization page in Facebook. After the login and the permission agreement the web view is blank and the only button is "Done" which close and cancel the picker. Any ideas?
Clean
Is there a select all functionality that can be added to you pod? Select all for images/videos in an album or the whole album
Would that be possible to get the photo where I am tagged and all of them gathered in "an album" called "Photos of me" for example?
Cheers
Hello - Since the most recent update, when I call presentFacebookAlbumImagePicker, it presents the picker correctly, but never shows any images, no Facebook login screen, nothing.
• In the console I see : Found 31 album(s) with this Facebook account.
• The error or success delegate methods are never called.
Not really sure what other info I can share.. It was definitely working well in the last version. Any thoughts?
I am brand new to Xcode/Swift, and was trying to import your frameworks with the listed instructions; I have added the dependency to the podfile, pod installed, updated. I still get a no such module error when trying to Import. Any thoughts why?
Hi,
Would it be possible to expose the GBHFacebookNavigationController
instance. Maybe in the func facebookImagePicker(imagePicker: UIViewController, successImageModels: [GBHFacebookImage], errorImageModels: [GBHFacebookImage], errors: [Swift.Error?])
method.
Like in UIImagePickerController
, the picker
in the method func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String: Any])
allows access to its navigation controller.
If I wanted to push another view controller myself after selecting an image, for example to crop the selected image, this could be useful.
Hello,
I am using your GBHFacebookImagePicker library. But I can't update FBSDKLoginKit as well as FBSDKCoreKit also. Because GBHFacebookImagePicker depends on FBSDKLoginKit ~> 4.34.0 and FBSDKCoreKit ~> 4.34.0.
Can you please update your library compatible to latest version FBSDK? So I can user your library with latest version of FBSDK. It will be really helpful for me.
Thank you,
Swapnil
After login facebook all album loaded but when click on profile picture then images are not loading on first click as same happens for timeline photos loader is spinning as long as have open the screen but go back and once again click on profile picture then images loaded. FIrst time user experience goes very bad. Find my attachment
When presenting the view with iOS 13 the picker is instantly dismissed.
didFailWithError
is not called though. Only didCancel
is instantly called.
Hi,
I added GBHFacebookImagePicker into my project using pod 'GBHFacebookImagePicker'. When I try to use, I face two problems.
1- I implemeted the protocol. It contains 4 methods. After implementation the error says that
Type 'ImagePickerLauncher' does not conform to protocol 'GBHFacebookImagePickerDelegate'
Here is screenshot:
2- When I say fix the error above. It duplicates the method and starts giving another error
Invalid redeclaration of 'facebookImagePicker(imagePicker:successImageModels:errorImageModels:errors:)'
Here is screenshot:
How should I proceed?
Best regards,
Emre.
Hi there,
Is it possible to pass in a facebook page id / access token to pull images from the facebook page rather than the current user profile?
Thanks,
D
Hey @terflogag ,
What do you think to change the name to GBHFacebookImage?
I think we don't need explicit say that it's a model.
So in the delegate we will have something like
func facebookImagePicker(imagePicker: UIViewController, didSelect: GBHFacebookImage)
Hello.
Check your documentation.
And find that library allow multiple selection. But not there is no this parameter in settings.
It will be great if you add it.
Thanks.
Add multiple selection
Hey! Ive just installed it with cocoapods and it says the following when I instantiate the picker with the code:
picker.presentFacebookAlbumImagePicker(from: self, delegate: self)
Xcode throws the following error:
Argument type 'galleryController' does not conform to expected type 'GBHFacebookImagePickerDelegate'
Would you know what is happening?
Thanks!
Integrate without pod config
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.