Hello,
I’m trying the latest daily build on ios 7.0.4 and my app which works fine with facebook, always has accessDenied set to true.
Is there a workaround or can I do something to get this working??
Krystian
Hello,
I’m trying the latest daily build on ios 7.0.4 and my app which works fine with facebook, always has accessDenied set to true.
Is there a workaround or can I do something to get this working??
Krystian
Hi @Krystian,
Can you please provide the typical “specifics” like which devices, whether the Facebook app is installed or not, and anything else you think is relevant?
Thanks,
Brent
iPad 3, Facebook app is installed, ios 7.0,4
Like mentioned, I’m running this on a released game, where fb is working ok.
Due to the sdk 5 errors I wanted to start using the accessDenied feature.
I’ve made sure that my app is enabled in facebook settings but property is stil set to false.
Same here, code works 100% on ipad 1st gen 5.1.1 os, but returns always “acessDenied” on my other device (iphone 3gs 6.1.3)
iOS 5 did not have Facebook built into the OS. 6.x does. You need to make sure you are logged in via facebook in the device’s settings app or make sure your app isn’t being blocked in those settings.
Rob: I’m using ipad with 7.0.4/7.1.
My app works perfectly, everything connects, app is not blocked [well since it connects…] etc etc, but I still get accessDenied.
Rob: yes, I have already checked this (also tried fb app reinstall and ios fb account sign out and back in)
app “fails” on “facebook.accessDenied” (is always true)
My fix:
do not check facebook.accessDenied
Without this check, calling
facebook.login( fbAppID,facebookLoginListener,{“publish_actions”})
everything works nicely (dialog shows, posting on timeline/feed works)
Took me 2 hours to find this out
matus
if you call login, and your game is blocked in Facebook app, your handler will never be called and you have no way to tell if it worked or not.
So it’s not really a workaround you just decided not to check if your app is allowed to contact facebook ;)
Hi Krystian,
facebookLoginListener gets called, I receive sucesfull login event and I am able to call showDialog and receive the handler (callback/listener) call to detect if the user submitted or cancelled the Feed Dialog
moreover _facebook.accessDenied, _according to docs is only for iOS. I will build my app for android also
moreover if facebook.accessDenied is false, and I call login, and the access is really denied (user removed the app permission), I receive loginFailed event. But I do receive it…
matus:
open up Settings->facebook find your app on the list and disable access.
Then run your app and check if you handler will be called.
Yes, and facebook login screen (email/password form) shows within my app. (after disabled fb rights for my app in ios settings)
Edit:
Login using this form fails, error shown (within fb dialog) is “Invalid App Id”
I suspect there’s some discrepancy in what we are doing, because there’s no way in hell this is showing to any of my users who disable our app in facebook settings
facebook.accessDenied
probably is true until user logs in first time. Without this first-time login my app even did not show in ios fb settings.
I assume, after the app is “registered” in ios fb settings, the facebook.accessDenied. works correclyprobably
_is your problem that _facebook.accessDenied returns true even if user graned access in ios fb settings?
yes, it returns true even if my app has granted permission.
Can I get someone to file a bug report on this… Please make sure to include your build.settings and config.lua. Post the bug number back here when done.
Thanks
Rob
I can confirm that now, after upgrading to the latest daily build, facebook.accessDenied works properly [I’m on 2272 now].
EDIT:
Please note, allowing access to facebook may take a while to propagate in your app. When user changes this setting and goes back to your game, they will most definitely NOT have facebook.accessDenied set to false. In my experience it takes at least a minute to propagate. I’m not sure why.
HAhah no… what a mess.
When we started to test on other devices, we have discovered how random this works.
Sometimes, during gameplay, accessDenied is set to false, and after playing a single round, so about 60 seconds later, accessDenied is set to true. Great, right?
Had to revert all of the changes and get rid of this check. We will still have to hunt for the sdk error 2 and sdk error 5 to know something… what a mess.
EDIT:
yeah, I will create a bug report, but as you know, it’s not that easy with facebook, users, testers blah.
Hi @Krystian,
Can you please provide the typical “specifics” like which devices, whether the Facebook app is installed or not, and anything else you think is relevant?
Thanks,
Brent
iPad 3, Facebook app is installed, ios 7.0,4
Like mentioned, I’m running this on a released game, where fb is working ok.
Due to the sdk 5 errors I wanted to start using the accessDenied feature.
I’ve made sure that my app is enabled in facebook settings but property is stil set to false.
Same here, code works 100% on ipad 1st gen 5.1.1 os, but returns always “acessDenied” on my other device (iphone 3gs 6.1.3)