I’m really struggling with the v4 plugins (iOS and Android) and I’ve no idea why since I’ve integrated lots of libraries before.
I’d already posted about my similar iOS issue here: https://forums.coronalabs.com/topic/61308-having-problems-getting-the-facebook-v4-ios-plugin-to-login-possibly-due-to-ats/
On iOS I always get the “loginCancelled” phase when I try and log in with the v4 plugin (it works fine using the old plugin).
I’ve seen another post where someone said they called facebook.logout when this phase was triggered but that doesn’t work for me. In my plist file I have Allow Arbitrary Loads set to true. It actually seems like the request goes through, because as mentioned in my other post I added a launch url listener which appears to contain successful login info. I’m using a recent version of Enterprise (2886) and the Facebook library from the 2886 plugins folder.
As far as I can tell I’ve done everything that the docs describe, including the migration guide and yet it still says cancelled every single time.
Another dev suggested removing the NSExceptionDomains from my plist, but that didn’t have any effect at all.
On Android everything builds and runs ok until I try to login, at which point I get an error telling me:
Class not found when unmarshalling: com.facebook.login.LoginClient$Request
Again I’ve posted this before but with no luck:
https://forums.coronalabs.com/topic/63324-android-studio-integration/
I’m taking a look at this today in case I’ve accidentally included an incorrect resource or something, but it’s concerning that I’m having so many problems with this plugin. Seemingly it works fine for everyone else so I’m not sure what I’m doing wrong.