I’ll give that a try, though I’m pretty sure I’ve already tried calling logout() and then login() again, as it was suggested by someone before (possibly on another forum post).
Hi guys,
For the iOS 9 and facebook v4 plugin, i have faced a new issue.
I have created a new facebook app and try to login with the new app. Everything works fine.
But with the old one, it never login, the resonse is:
response_raw The operation couldn’t be completed. (com.facebook.sdk.login error 304.)
I have tried to reset the client token for the old facebook app however still cannot log in.
Same code, same plugin, same corona version with different facebook application id
Hi Rob, is there any more news on this login issue yet?
Using the sample app I no longer see this issue either on iOS or Android (login cancelled). And we’ve determined the cause (at least on Android, I’m still scratching my head why it went away on iOS)…
Any way, a few weeks ago, I update my app on Facebook’s developer portal to change my Client Token (under Settings->Advanced) and then iOS started working. But that didn’t do anything for Android. Using the sample app any thing after the first login attempt would result in a Login Cancelled.
My app was live on Facebook, but I never submitted it for review. The sample app was requesting the “publish_actions” permission which has to be approved by Facebook for live apps. Once I unpublished my app and put it back in testing mode, and using a test account, I can use the sample app with perfection with the exception of one of the dialogs which we know about and are working on.
The the gist of this is there are permissions like “publish_actions” which have to be approved by Facebook before you can use them in a “live” app. And in a non-live app, only listed testing accounts (and your admin account) can use the app.
The sample app always asks for “publish_actions” on subsequent logins but not the first login, which is why I was always getting a successful first run. If you’re asking for “publish_actions” in your first login, it’s going to fail if you’re not been approved by FB to use this on a live app.
Rob
@Rob; My facebook app has no client token set, and I am publishing this app for about 4 years without any problems.
What does client token do exactly?
I don’t know what it does. It doesn’t seem to impact the legacy Facebook plugin. The LoginCancelled feature seems to be something Facebook is doing in V4. I don’t know if it was the token or not, but before I set it, I was getting LoginCancelled on iOS after I set it, it seemed to work.
However I suspect its still has to do with my app being published/marked live without getting approval for “publish_actions” that was the real culprit.
Rob
Just wanted to add I’m having the same ‘loginCancelled’ issue on iOS. I have reset the client token, but no luck. I used to use the publish_actions permission which was approved previously, but I noticed today it was no longer approved. Since I don’t use it anymore I just removed the request by hitting ‘Start Over’ in Facebook’s settings.
Please let me know if there are any other suggestions. Running Corona SDK 2906.
UPDATE:
I can confirm the same code works 100% on android for logging into Facebook. This seems to be an iOS isolated issue.