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.
Related
I am trying to integrate PayUMoney SDK for android and successfully added the SDK in my application. When the user clicks on the pay button a login page opens up.
Why should the user be made to login/create an account for payu?
As soon as the user presses the pay button the options for payment should open up but that is not the case. I have tried the sample app given by them in github too and seems that it has the same flow.
I got a video in youtube showing the problem for anybody who would like to see what I am talking about.
Is this is the default work flow for PayUMoney or is there a way we can ignore the login and choose the payment option?
Most of the videos and tutorials show the old SDK integration method of PayU. If anybody could guide me with this it would be of much help.
For anyone who is looking for an answer in future. PayUMoney has changed their SDK for android. The sample application given by them during your SDK download from GitHub works totally fine and there is no way you can bypass the login screen they provide. You will not need to change anything in the sample app they provide. Just run the code:
Click on the pay button.
Enter any email id.
Select Guest Login below.
Click the login button.
This should show you the payment option page and then after that use your testing credentials and everything should work like a charm.
I hope this helps.
I created an android application with facebook log in (using face book sdk 3.6.0), following the steps mentioned in developers site. After completion of my app I am able to log in with my facebook id but not with any other user id. It shows a dialog like logging in but wont let me log in and continue. I tried with both debug as well as the release Key hash, but still facing the log in issue. What could be the reason and why am I not able to log in with other accounts. Please help.
Thanks in advance..
Goto https://developers.facebook.com/apps click on the app you have created. on the left side you can find Status and Review click on it. on the right pane you can see a toggle button with the question "Do you want to make this app and all its live features available to the general public?" make it on or yes. from now every can log in to your app using their profile credentials. Thank you.
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
recently I have been working on Facebook SDK 3.0 for Android.
While everything was done smoothly, I found the following issue.
When the user presses a facebook Login button on a device where native Facebook app is not installed, a webview login activity appears. After logging in, the login page appears again even when the app requests user's permissions. (This is a known issue according to Facebook http://developers.facebook.com/bugs/333926600053215)
So, until Facebook fixes this issue, what I want to do is to detect whether the user has FB app installed on his device, and if not I want to show my customized webview that handles login process.
Since I have all the source codes in Facebook library project, I think I can customize that but the question is, how should this be done?
If I make a change on one of those files in the library projects, will it be automatically applied to the main project that uses this library project? What would be an efficient way to customize the facebook library project?
I faced the same issue and partially solved it: roughly, i attempt to obtain login with publish permissions, if it's rejected then the fb application's installed and then i request read-only then publish, if it's not rejected then you get the login with publish permissions coming up right after it and you're good to go.
problems with this solution:
1) 3 user interactions instead if 2 if the fb app's installed.
2) bug if cancelling the login with a webview (a second one appears), though i think this one's solveable, i didn't have time to try.
sorry for quick/curt reply.
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.