Hi I have followed facebooks tutorial and setup the sso key and have integrated the sdk into my code. After logging into facebook via the facebook.authorize it brings me to a new screen which just says "loading" and sits there.
There are no errors in logcat / console and if I press the back button it just says I cancelled the login process.
I am testing on a device.
All the required permissions are there (internet)
I've also tested on the emulator and it sits at the same point.
I've also tried disabling the SSO via Facebook.FORCE_DIALOG_AUTH and after logging in I get a blank screen as well.
Thanks
well, I know this is a very old question but I just happened to stumble upon this problem last night. I solved by:
Updating my FB client in my phone
Making sure the date/time were correct on the device.
Try and disable any adblock such as adfree or adaway if present. It caused me similar issue when trying with Parse.
Related
I have integrated facebook sdk with my android app.
But users are facing a strange problem and I have searched a lot without any success in finding the solution.
The problem is, when user login for the first time, everything works fine. But when user log out and then login again, nothing happens. Just that white login screen appear and disapper in couple of seconds.
Any idea whats going wrong here?
Nothing wrong here. The Facebook account of that user is already associated with the app and the user does not need to provide permission again. If you check, you will see there will be an active session after the log-in.
i'm working on an app in titanium studio that uses the facebook SSO to authenticate the user.
the odd issue we're having is that in the default android emulator, you can enter your username and password into the login overlay then you get to the confirm authorization page. fine, but you can't click OK or Cancel in the dialog, so the login never completes. the only click-able element on the page is the little (X) in the upper corner, which cancels the login. the console displays no errors at any time through this.
why this is strange: if i compile the app directly to my droid, it works perfectly. i can get logged in, look at my profile, whatever. i do not have the facebook app on my droid, but i installed it on the emulator thinking it might change the functioning. it didn't, it still won't let me click either button.
i realize that this is not a show-stopper type of bug, but it makes debugging via the emulator extremely problematic - so i was wondering if anyone else had run across/resolved this.
thanks!
as far as i can tell, the emulator doesn't play well with the login overlay from facebook: in addition to the click events not being heard, we also noticed later that some of the facebook button and image resources were not being loaded.
side note: in addition to the above facebook-related problems, we were also experiencing a failure to initialize the emulator or failure to install the apk to a running emulator, both for no apparent reason, roughly a 50% of the time.
solution: i gave up and switched our team to the genymotion emulator. it works perfectly every time. we haven't had a problem since.
I've been stuck on this very frustrating problem all day and through Google I've found many people with the same problem with no answers that relate to the new Facebook API for Android. I have followed the steps listed here exactly :
https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/
When I run the sample app on my device I get this:
When I run it on the emulator it works. I understand this to be because of Facebook's SSO implementation. The emulator does not have facebook installed so it signs in for the first time successfully, but the device launches the facebook app and for some reason gives this error and when I travel back, it is as if I am not logged into facebook at all and there is no active session (though I am because when it launches the facebook app I can browse friends, etc.)
I cannot uninstall facebook on my device and even if I could that would be unacceptable for the app users. If possible, I'd like to retain the SSO feature, but somehow make it work!
I have spent all day going back and forth with my Hash Keys, and generated them through my device+code and with the keytool and they match so the problem is not related to that. Besides, the sample app runs on the emulator which surely means its an SSO problem. Thanks in advance.
After 8 hours of scanning through my code and the facebook docs, I simply decided to update my facebook app on my tablet ( I never use it and so never bothered to update it ) and now it all works.
I guess the Facebook app on my tablet was pre-SSO of Facebook on Android, but my created app was expecting it to be supported and giving the error.
Just to be a bit more clear, if you are either running on your device or on the simulator, make sure you have the latest Facebook APK installed. Facebook changed their permissions a while ago, and you may have to manually go to the Google Play store in order to download the updated version of Facebook (it may not auto-update for you given the permission changes).
Disabling Facebook did the trick for me. It forces the app to launch the browser and surf to Facebook that way
In Hackbook Android sample and any other Facebook SDK 3.0.1 samples i getting trouble to login.
I go through facebook login dialog and after successful authentication then app authorization dialog appears: "Hackbook would like to access your public profile, friend list and photos" with Cancel and OK buttons. Click on any these buttons has no effect. Only way to return to app is press hardware back button.
Samples works well some days ago. I've tried to register own app id and replace it in samples, generate hashes for android native application, change app name and package, nothing helps.
Please point what's going wrong.
I experienced a similar issue which might be afflicting you as well. I had the same behavior you are seeing and I figured out it was due to having the "Don't keep activities" developer option turned on. If that option is on and you have not yet logged into the native Facebook app then you will go into an infinite loop on login. It is a bug with the Facebook SDK for Android.
Here is the bug report, https://developers.facebook.com/bugs/269489836511974.
I have implemented FB in my application an it is working perfectly in my samsung device o/s 1.5. However in the HTC Evo the FB login dialog disappears soon after loading. it stays for a couple of seconds and vanishes. i have tested it in the emulator 2.2 and it works fine.
what could be the possible reason of the behavior and how can i overcome it?
just found out that it happens when i am logged into facebook in another application.
however in applications like photoshop express there is no such issue.
Just what am i missing??
I had the same issue. It was because I was connected with the official Facebook application. I disconnect from the official Facebook application and then I was able to launch the login dialog. The problem is with SSO.
I solved it by forcing the login dialog rather than SSO by passing FORCE_DIALOG_AUTH in the authorize methods in Facebook.java.
The issue is actually that you haven't set up your Key Hash for your application with Facebook yet which is required to use SSO. FORCE_DIALOG_AUTH actually disables SSO, but this is a poorer user experience. Instead, take a look at an article I put together after struggling with this issue which describes the correct way to tackle your problem:
http://sean.lyn.ch/2011/07/android-the-facebook-sdk-sso-and-you/
I got this FacebookException because of developers site was not working.After developer facebook site worked, this issue was resolved.