-
-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please update dependency for ParseFacebookUtils #1274
Comments
The latest facebook SDK is actually 4.31.1, can the podspec just get updated to that? Facebook is sending out messages to update to the latest SDK for important iOS 11 fixes. |
Can you open a PR please? don’t forget to update the Cartfile and run Carthage bootstrap so tests are run against it as well. |
I don't know how to do this PR. However, I'm getting a weird crash when a new user tries to log in with facebook. I'm seeing that new facebookutils version is 4.32 but we're only at 4.28, could this be the cause of the crash? Any help getting this resolved would be greatly appreciated, thanks! |
@tahoecoop can you provide the crash please? |
I don't have anything too specific for you. I am setting breakpoints and its not even getting inside the block on PFFacebookUtils.logInInBackground function. The user gets into the facebook app fine to do the allow access, and when they send it back to my app, it just crashes. This seems to be a new-ish crash that's happening, everything seemed to work before. Thanks for your help! |
When it crashes, there's a crash log, a stack trace etc... can you please gather it? |
|
@markuswinkler the branch xcode-9.3 should have what you’re looking for. |
Hi @flovilmart the latest SDK version is 4.32.0 and in the xcode-9.3 branch it's 4.29 Thanks! |
@ranhsd I used permissive semver so that value doesn't really matter. Actually, the lower the better, this way you have a way to go 'back' Also I just tested and it properly installs 4.32:
|
Hi @flovilmart you're right. didn't noticed that thanks |
@flovilmart Thank you! |
@markuswinkler let me known if everything is OK before I merge and release |
Hi @flovilmart , tested in on my side and it works as expected. |
@flovilmart Please update also 'FBSDKShareKit' to '~ 4.29'. Thank you. |
FBSDKSharekit don’t build after 4.29. |
Is anyone experiencing login issue crashes with facebook by chance? |
@gateway stacktrace please |
@flovilmart I can install FBSDKShareKit 4.32.0 |
@gateway I had a similar issues that all logins resulted in cancel. Facebook changed something. Work around was to delete the app from the account I was logging in with to get the full permission prompt again. |
@flovilmart I believe @tahoecoop did above? Also on this page https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing they are stating |
Well, there is certainly something wrong with the native Facebook SDK then. It simply didn't show me the permissions dialogue and instead returned cancel and no token when I tried to login with it. |
@gateway the stacktrace posted doesn’t help much, another would help. |
Here is the full stack trace. It only crashes when using the native FB app rather than just inputting email/password. Thanks a lot for the assistance!! thread #1, queue = 'com.apple.main-thread'
|
@tahoecoop are you able to post your app delegate? And most precisely the methods that you implément? I’m thinking it’s possible a UIKit/Swift bug more than a Facebook SDK bug |
Here are all the funcs in my app delegate. If needed, I can sterilize some stuff and post full functions. Thank you!! func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {... } func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {...} func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {... } func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) {...} func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([Any]?) -> Void) -> Bool {...} func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {...} func applicationWillResignActive(_ application: UIApplication) {...} func applicationDidEnterBackground(_ application: UIApplication) {...} func applicationWillEnterForeground(_ application: UIApplication) {...} func applicationDidBecomeActive(_ application: UIApplication) {...} func applicationWillTerminate(_ application: UIApplication) {...} PLUS standard Core Data Stack. |
There is also that method that you can override:
the one you're using
has been deprecated since iOS 9. What SDK are you targetting? |
@flovilmart You nailed it, great catch! Xcode didn't supply any warnings about that function being deprecated. I'm targeting iOS 10.0. Thanks a lot! |
@flovilmart its possible to update the 'FBSDKShareKit' to '~ 4.29'? Because the messenger sharing features is introduced on this version. Thanks. |
Just merged the xcode-9.3 branch to master, you can use the master branch with cocoapods. |
@flovilmart Yes, that totally works 😊 |
@flovilmart That's great, thanks a lot!! |
I was getting a Facebook login crash because I was using, in the App Delegate, a deprecated function:
when I needed to use:
This fixed the crash. I am not sure why it was working for a couple of months, and then all of a sudden it started breaking. I assume Facebook changed something, and that caused the crash now, but I am not sure. Hope this knowledge helps others. |
Hi @flovilmart ! I'm still having this issue, just tried updating cocoapods. Both loginkit and corekit are still locked to 4.28. Any assistance is greatly appreciated! |
Can you be more explicit please? |
I updated my pods, including Parse, Parse/FacebookUtils, and Parse/UI. For the Facebook utils, something is locking FBSDKCoreKit and FBSDKLoginKit to v4.28. The current version of these frameworks is 4.38. Thanks for your help! |
But parse? As mentioned in the 6 month old comments, the versions are now very permissive if uou’re Using the master branch as a dependency |
I'm not sure unfortunately, shouldn't the Parse/FacebookUtils update these Facebook frameworks to the latest versions? I'm not referencing another git branch or anything, just master branch. Any idea what would lock these FBSDK frameworks to this older version? Thanks again! |
The resolution is shared in the thread, use the master branch of this repo. If this is not a satisfactory solution, then you can probably open a PR with something more suitable to your needs |
Thanks for your reply, I am using master branch, I'm using pod 'Parse' and pod 'ParseFacebookUtils'. The FBSDK dependencies never updated for me since this thread started 6 months ago. I tried getting the FBSDKs as their own cocoapods but the version is still downgraded to 4.28 by ParseFacebookUtils. I'm down to change whatever, I am not sure why it would still be locked to 4.28 though. Any insight would be greatly appreciated. Thanks again! |
@tahoecoop did you take a minute and look at the podspec? Can you tell me what reads on those lines? |
ParseFacebookUtils is deprecated and you should use Parse/FacebookUtils (https://cocoapods.org/pods/ParseFacebookUtilsV4) It is also printed in bold when you run your |
I also guess you didn't take the time to have a look at the README where we state:
So back to your question as for why it is locked on those versions, it's because you did not update your pods. |
Thanks for your response, I did read the docs as a matter of fact. My podfile is correct, I'm using pod 'Parse/FacebookUtils'. |
I see the podspec was updated as well, I'm just trying to figure out what's happening. Not sure why it still wants to lock it at 4.28. I'll do some more research and see if I can dig anything up. Thanks again. |
As I showed a minute ago, the parse SDK podspec will never let 4.28 as a proper version if you are using the master branch. I strongly suggest you triple check what you consider being the ‘master’ branch for your podspec. Can you share those lines? |
@tahoecoop How about your podfile.lock? |
Those are not pointing to the master branch, but the last version. See https://stackoverflow.com/questions/39930664/how-to-install-a-pod-from-a-specific-branch |
Awesome, everything updated properly when I explicitly point it at the master branch. When I looked at the branches for the project, it says that Master is the default branch so I assumed I was getting this. Thanks for your help, I really appreciate it!!! |
perhaps you should spend a few hours understanding your tools like cocoapods, not assume maintainers are ‘wrong’ and you did everything ‘right’. |
I didn't assume anything my friend, that is why I was coming to ask for assistance. I was merely following the docs, it says nothing about pointing to the master branch. Thanks again for your quick response. |
I am not 'your friend', I merely point out that by 2 times I repeated that you should point your pod to use the master branch in which you never asked: 'How do I point to the master branch' but always assumed that you were pointing to it already.
Yes the 'docs' don't specifically detail how to use cocoapods, this is what cocoapods docs are for (and stackoverflow). I am just appalled, good luck! |
This is a really disappointing discussion. Unless I'm missing something, @tahoecoop's questions are legitimate and politely asked. @flovilmart I don't get the hostility? I'm sure you deal with a ton of low-effort/poorly researched issues (and rarely any pull requests to help contribute), and everyone here is grateful for your work on the project. But this is a poor representation of that hard work and discourages others from asking questions, discovering the platform, and sticking around long enough to contribute themselves. |
This is exactly your point, I get 100% of poorly researched issues and 0% help. Now if any one want to pick the SDK, i’m Done contributing to it. |
Your work would be sorely missed but I can understand why you feel that way. |
@flovilmart Please keep up the great work! |
@markuswinkler thanks for the contribution, this means a lot. Money has never been an issue. Time and commitment however have always lacked in this community. I don’t personally know what to to with the money given on open collective, but I would know how to leverage motivated contributors and maintainers. |
@flovilmart You are very very welcome! |
Hi!
ParseFacebookUtils currently is limited to a FacebookSDK '~> 4.28.0',
although 4.30 has been out for a while.
Can you please update the podspec?
Thanks!
The text was updated successfully, but these errors were encountered: