Unable to get Facebook permissions due to pending request.

We have noticed that if our app is closed or crashes when the Facebook permissions dialog is open, we cannot request permissions when the game is reopened. Trying to do so gives us this error:

Runtime Error: java.lang.UnsupportedOperationException: Session: an attempt was made to request new permissions for a session that has a pending request.

and the game crashes when the error is dismissed.

I have found the following which suggest it is a known problem with a potential fix, but is this fix in place in the current Facebook plugin?

https://developers.facebook.com/docs/android/troubleshooting#pendingrequest

http://stackoverflow.com/questions/14039154/an-attempt-was-made-to-request-new-permissions-for-a-session-that-has-a-pending

Corona’s own Networking/Facebook sample will be able to replicate this. The only requirement is that you are signing into the app for the first time (i.e. use a new facebook account) so that the permission has not already been accepted in the past.

We will need a bug report so engineering can schedule time to look at this.  Please make sure to include a complete project.  If the sample app works as a demo, zip up the folder and include it as the sample.

Thanks

Rob

Bug report just filed, Case 39487.

Hi,

I just had the same issue,  the app crashed because my hash key was wrong (fb dev page method for getting the key gives you a wrong key). After fixing the hash key, I get exactly the same message.

I only found how to report bugs, not track existing bugs, how can I follow the status on this issue?

Thanks

endy

Post the Bug ID and I can look it up.

Rob

Hi Rob

Well I’d just like to know if there was any findings regarding the bug 39487 that Alan created since I’m having the same issue.

Thanks

endy

The bug was filed 4 days ago.  It’s still in the queue to be assigned.

Rob

We will need a bug report so engineering can schedule time to look at this.  Please make sure to include a complete project.  If the sample app works as a demo, zip up the folder and include it as the sample.

Thanks

Rob

Bug report just filed, Case 39487.

Hi,

I just had the same issue,  the app crashed because my hash key was wrong (fb dev page method for getting the key gives you a wrong key). After fixing the hash key, I get exactly the same message.

I only found how to report bugs, not track existing bugs, how can I follow the status on this issue?

Thanks

endy

Post the Bug ID and I can look it up.

Rob

Hi Rob

Well I’d just like to know if there was any findings regarding the bug 39487 that Alan created since I’m having the same issue.

Thanks

endy

The bug was filed 4 days ago.  It’s still in the queue to be assigned.

Rob