Facebook authentication with Popup - android

I am trying to achieve a Facebook login in android with the native pop-up that asks for permission (with the profile image etc.)
I have followed the tutorial here and am able to log into facebook, but the app just flashes for a short moment, loads, and then finishes the login and goes to the next screen. There is no review of the Account Information (or a selection which account I would like to use) like with google login.
How can I achieve this as a popup? :

Related

Login to fb on any android app with hardcoded credentials and without login popup

I want to login to facebook with the stored FB credentials hardcoded in my source code and without showing the login popup screen.
I will create a fb account for my application then every time using that credentials fb should be logged in without showing any screen to user.
Can anyone please help me out with this? Is it even possible?
There is no way to bypass the popup screen that comes for SSO when the Facebook APP is installed. Even If you try using the Web based login method I am sure they would have some code to detect the automated login on their form and they will block you sooner or later. And I am not sure if this webview based popup can be hidden maybe you can try drawing something over it.

Android Facebook login without native app or dialog

I am developing an application in which i want to login via facebook. I want to do.
After splash screen a login screen is there on which user name and password edit text. After entering the credential on clicking on custom login button the user should authenticate from face book in background. If the user is authenticated then he directly goes on next activity. Without open native facebook app or dialog or browser with new facebook SDK.
Please guide me if this type login possible and give your valuable suggetions.
You should NOT do that!
Facebook SDK is there for a reason.
If a user will enter his Facebook credentials, in your EditText, that can lead to account theft.

How to clear Firebase authdata on Facebook App revoke?

I am following the login with Facebook example for my app from here.
I have a question regarding one of the login test cases as mentioned on facebook. Here is the scenario:
First time user comes, sees the login to facebook button
Successfully logs in, sees and approves the facebook(fb) app permission screen, and I get the authdata, and some other info
User closes the app
User directly goes on Facebook and revokes the access to the fb app, approved in Step 2.
User opens the mobile app, and still able to use it, without getting the facebook login button..?
Ideally I would like to see the login button again.
How do we handle such a scenario with Firebase and Facebook together? Do I need to check something on every app restart and what all things I need to clear before new login starts?

Removing download Facebook App link from Facebook login page

I'm building a native Android app for a client and one of the areas of the app allows the user to post their score from a quiz to their Facebook wall. This app is on devices that are handed out to the public and not on their own person device. The problem is that the Facebook login page has a link to Google Play that says "Get Facebook for Android and browse faster". When tapping this the user is bumped out of the app to the Market. I need to keep people within the app. Giving the user the ability to enter Google Play and download the Facebook app or any other app is not going to work.
There's the added problem that the device has a protective casing that covers the hardware navigation buttons. So the user doesn't have access to the back button to return to the app.
Any ideas if how to get a modified login page?

android facebook sdk publish feed to user's timeline

In my app I need to post certain content on user's timeline. I followed official tutorial given on https://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/. But in this tutorial, they've mentioned to set up Login flow first. And they have given a nice guide to do that. That's fine.
But the way I want is, user will be presented with Share Story button only. If user is logged in, story should be posted directly. And if not, normal login flow should be followed asking desired permissions and on login callback story should be published. I don't want to display Login button explicitly.
I stuck on this because in docs, everywhere they've mentioned to use <com.facebook.widget.LoginButton .... /> for login purpose. I don't want to use this at all as this will require user to interact two times. First tapping on Login button and second time to publish story he/she has to tap on Share Story button.
I can't find a way to check if user is not logged in and force him/her to login first from my code block.
It might be a bit late, but this appears to answer your question:
Android - Facebook SDK 3 - How to login programmatically without LoginButton

Categories

Resources