ccsoft / cordova-facebook

Cordova plugin that handles Facebook integration in mobile apps.
Apache License 2.0
87 stars 43 forks source link

Fail to re-require for permission #48

Open sonicwong opened 9 years ago

sonicwong commented 9 years ago

For example, I require user for 'public_profile', 'email' permission. User un-ticked email. and continue. It return success function call, so I check the permission array. But when I processs logout and login again. Permission setting screen not come out and only return me 'public_profile' permission. What way should I do for sure user have 'public_profile', 'email' permission?

koraybalci commented 9 years ago

What platform, Android and/or iOS?

sonicwong commented 9 years ago

Android, just use the sample apps provided with my own facebook app id

koraybalci commented 9 years ago

I am testing in simulator, so no facebook app installed and it's working. I login, two dialogs back to back for permissions, then I logout and login again (fill facebook login info again) and see two permission dialogs again.

sonicwong commented 9 years ago

Here is my index.html (i just added alert and remove some button in the example) Project based on: https://github.com/ccsoft/cordova-sample/tree/facebook https://dl.dropboxusercontent.com/u/52815443/index_html.zip

I record the step in video: https://www.youtube.com/watch?v=WanM9hH-qw8

Thanks!

sonicwong commented 9 years ago

2014-09-23-16-58-32

It is the screen capture for device that have not install facebook app. (previous video is using facebook app)

koraybalci commented 9 years ago

Ok, I'll look into it. It also involves android lib we are using (simple facebook), so it might take a while to figure out a solution (next week hopefully).

hirbod commented 9 years ago

I have the same problem on iOS. I managed to fix this on my way:

On login I post the token to my server (i need this) and validate with PHP-SDK. When one permission is missing I request a DELETE on /me/permission to de-authroize the app. This will force a complete new app permission screen. Works well..

hirbod commented 9 years ago

Just some more informations here: this only happens when Facebook-App isn't installed (Safari iOS / Modal-Box Android).

koraybalci commented 9 years ago

@sonicwong : Can you please retry with FacebookSDK 3.23?

hirbod commented 9 years ago

Is fixed on 3.23, but still present on iOS.