Skip to content
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

Fail to re-require for permission #48

Open
sonicwong opened this issue Sep 23, 2014 · 10 comments
Open

Fail to re-require for permission #48

sonicwong opened this issue Sep 23, 2014 · 10 comments
Labels

Comments

@sonicwong
Copy link

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
Copy link
Member

What platform, Android and/or iOS?

@sonicwong
Copy link
Author

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

@koraybalci
Copy link
Member

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

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
Copy link

hirbod commented Sep 23, 2014

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
Copy link

hirbod commented Nov 12, 2014

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

@koraybalci
Copy link
Member

@sonicwong : Can you please retry with FacebookSDK 3.23?

@hirbod
Copy link

hirbod commented Feb 26, 2015

Is fixed on 3.23, but still present on iOS.

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

No branches or pull requests

3 participants