Facebook permissions are acting up on Android.

Yuval @formatc, thank you for posting your finding.  

About Android version, my app does exactly the same (3 permission requests the first time the user log in to FB), and it’s been one of the most irritating things that I simply decided to ignore because it appears that’s the only workaround available with issues with FB integration.  (I don’t remember the URLs for the threads that articulated the issues that had to be resolved a while back.)

About iOS version, the issue with iPhone 5 does not sound very good at all.  What iOS version is installed on your iPhone 5?  I’m wondering if it’s the iOS version specific issue (rather than device type specific issue.)  Regardless, you may want to submit a bug report detailing this issue so that it will be addressed rather quickly.

Naomi

https://developers.facebook.com/docs/android/login-with-facebook/

When logging in to facebook with both read and publish permissions it asks you 3 times because thats how facebook wants it to be done.  The first time is for basic permissions, the second time is for read permissions, and the third time is for publish permissions.

If you call login without any permissions then it will just ask for basic permissions.  When you actually need read/publish permissions you can call login again with the new permissions then at that time it will ask the user again for those permissions.

Thank you, @dchan, for letting us know.  What I find odd is that the user experience is totally different between Android version and iOS version.  I wonder why Facebook enforces different permission mechanics.  The way FB allows iOS version to bring up  single popup for multiple permissions is much more elegant compared to, in our case, three permission requests popping up one after the other on Android version.  I totally don’t understand why they require user experience to be so different between Android and iOS when doing the same thing (i.e., logging in with permissions.)

Naomi

P.S.  @Yuval, I really do like to know if the iPhone 5 issue you described is something to do with iPhone 5 specific or iOS version specific.  What iOS version does your iPhone 5 have?  And what iOS versions does your iPhone 4 have?

Hi there Naomi, thanks for the information, it’s the first you’ve help cleared something up, so thanks again :slight_smile:

I will let you know the version of the iOS when I’ll have the device in my hands, a couple of hours from now, but I believe it’s 6.1, it wasn’t updated to 7 as far as I know, but I could be wrong.

I will try and change the app dynamics so it won’t request all permissions when doing log in, although I have no idea how it will act when I’ll try to publish, would it know by itself to ask permission or would I need to re log in with the requested permission for it to work? You’re on a completely different time zone then mine, so I guess I’ll just have to test this out to see, I hope this will work since I’m just about physically sick with working with Facebook, the source of all earthly evil.

Yuval. 

Ok, so our iPhone 5 info (problematic, not working):

iOS - 6.1.3 (10B329).

Model - MD298B/A.

iPhone 4S (works just fine):

iOS - 6.1.3 (10B329).

Model - MD235IP/A.

Hope this helps, and this bug is really terrible, getting zero response from the API is a killer to any app needing the use of that social virus called Facebook :slight_smile:

Hello again Naomi, or anyone reading this post who might have the answer:

Lets assume I’ve change my Facebook handling flow, and to minimize the requests permissions API windows I don’t ask any permissions when I do the first log in (taking our the email and publish requests out of the log in), so how do I get those permission when I do need to publish something? do I need to re logged in with the requests I need, or is there some other way to ask for specific permissions one I’ve already logged in?

Thanks.

When you need more Facebook permissions then you will call facebook.login() again with the new permissions that you want.  If the user has previously logged and has not granted the the permissions yet then it will ask for the new permissions.  If the user has previously granted those permissions then it will just called the listener and you can continue on.

@formatc, about not getting any response from the API with iPhone5 you mentioned above, have you had a chance to file a bug report?  If it’s still a problem, it would be great if you could submit a report and have it looked at.  (I have not had a chance to test this myself and not sure if I will be able to anytime soon.)

Naomi

dchan, thanks for the info, I’ve already figured that solution out by testing, it works wonders and changes the flow of my Facebook interactions completely, and in a good way, so thank again!

Naomi, I did file a bug report, with an example project and everything, I’m sure it’s being looked at, I’ll update this thread as soon as I have some response about this issue :slight_smile:

Yuval.