Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Profile picture not loading on first click #56

Closed
pradeepkatiyar opened this issue Jul 29, 2019 · 6 comments
Closed

Profile picture not loading on first click #56

pradeepkatiyar opened this issue Jul 29, 2019 · 6 comments
Labels

Comments

@pradeepkatiyar
Copy link

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
WhatsApp Image 2019-07-29 at 12 28 18

@floriangbh
Copy link
Owner

Hello @pradeepkatiyar,

I'll take look on it asap, thanks for the report !

@floriangbh floriangbh added the bug label Jul 29, 2019
@floriangbh
Copy link
Owner

I can't reproduce this issue and I have lost my facebook test account with a large amount of picture. Can you provide more information to reproduce this ? (number of pictures for example)

@pradeepkatiyar
Copy link
Author

Please have a look video

https://youtu.be/-Iuky1BO_nQ

@pradeepkatiyar
Copy link
Author

pradeepkatiyar commented Jul 30, 2019

I have installed lib via pod

pod 'GBHFacebookImagePicker'

Please find below my code

func getFbImage(){
let picker = FacebookImagePicker()
picker.presentFacebookAlbumImagePicker(from: self, delegate: self)
}

extension ProfileViewController: FacebookImagePickerDelegate {

func facebookImagePicker(
    imagePicker: UIViewController,
    successImageModels: [FacebookImage],
    errorImageModels: [FacebookImage],
    errors: [Error?]
    ){
    DispatchQueue.main.async {
        if successImageModels.count > 0 {
            self.arrPics.append(successImageModels[0])
        }
        self.collectionView.reloadData()
    }
}

/// Called when facebook picker failed

func facebookImagePicker(imagePicker: UIViewController,
                         didFailWithError error: Error?){
    print("Cancelled Facebook Album picker with error")
    print(error.debugDescription)
}

/// Called when facebook picker is cancelled without error
func facebookImagePicker(didCancelled imagePicker: UIViewController){
     print("Cancelled Facebook Album picker")
}

/// Called when image picker completed dismissing
func facebookImagePickerDismissed(){
    print("Dismissed Facebook Album picker")
}

}

@floriangbh
Copy link
Owner

Are you on the last version ?
It seems to be the same issue as #54, but it's now fixed on the v3.1.0.

@pradeepkatiyar
Copy link
Author

Thanks, i have update all related lib and fixed the issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants