Same permissions Facebook app - android

Currenly I have an Facebook app. I want to create a IOS and Android app as well. Does the user need to give permissions again and can I use the same information that is available on the Facebook app?

No, once your facebook app asks for user to give permission (which fires the browser if facebook app is not installed on the mobile, and the facebook app if installed), if your app is already approved by the user - and you're not asking for further permissions than were approved by the user on your web app - your mobile app will be approved automatically.
The behavior should be as follows:
If the user is not currently logged in to facebook (on the facebook app or mobile web). When the user runs your app for the first time, your app calls the login API, either facebook app or the browser opens (on iOS, you see the window sliding out and the facebook app slides in). The user will be prompted to log in. After logging in, control will be switched back to your app.
If the user is currently logged in to facebook. When the user runs your app for the first time, your app calls the login API, either facebook app or the mobile browser opens. Shortly afterwards, without any user intervention, the it will switch back to your app (on iOS, you'll just see the windows sliding twice - out of your app and in again).

Related

How "Login With Facebook" Mechanism work in Android to communicate with other app?

I had developed 4 Apps.
Main App
App Alpha
App Beta
App Gama
All 4 Apps have same Login with email option, and user can login with same email address and password like Gmail, Google Keep and Google Photos do.
So, I want to make Login with Main App Options, So if user is signed in Main App in same device, when they click from other app's Login With Main App button, other app should communicate with Main App and get token from thek and do autologin for.[Same as FB messenger and FB Main app login functionality]
So How its possible in Android ?
Deeplink ? Shared Preference ? Or Any other technique ?
If I am understanding this correctly. Its because of the Facebook Login feature. If you already logged in with Facebook or connect that app to it. It is automatically logging in as long as the Facebook session on your phone is still active. Which on the phone it can last theoretically indefinitely until server maintenance in which is where they usually ask you to change your password.
So how does it log in? Built in framework to allow it to be done.

cordova - sso on multiple hybrid applications

I have a situation here to develop multiple (3 in my case) Hybrid applications all which needs user authentication. All the apps are under a SSO.
I want to achieve the following.
When any app for first time is opened user should be shown logic
screen where he enters credentials and is authenticated.
When user opens another apps then as he already signed in previous
app he should be directly taken to home screen without again asking
for credentials.

How to reset DefaultAudience when Logging Out from FB on Android

I'm using FB SDK to connect my App to FB. When I run the app for the first time on a particular device, when I execute the following code:
LoginManager.getInstance.logInWithReadPermissions()
LoginManager.getInstance.logInWithPublishPermissions()
The user is taken to the FB Android App and is asked if my App should be given certain user accesses. For publish permissions, the user is also given a choice to specify who should see the published content (only_me, friends, everyone, etc...)
I logout from FB via
LoginManager.getInstance.logout()
When I attempt to login again, from the same device, the App is simply connected to FB, without asking if the App should be given by FB various permissions. How can I force FB to ask the user about various login permissions upon every login. In particular, I want the user to be able to change who gets to see the published content.
I know that I can changed who gets to see the published content via
LoginManager.getInstance.setDefaultAudience()
but then, I'd have to keep track of the FB audience setting in my App.

Facebook complete logout from android app that uses the Facebook SDK

I have a problem with the Facebook SDK for Android: basically I have an app X that uses the Facebook SDK to login (since I also have the "Facebook" app for Android installed on my smartphone, it uses its native login screen to access) .
In this way, if I login from my app X via facebook SDK, I find myself also logged in in the "Facebook" app for Android.
Now the question arises: if I want to disconnect from my app X (maybe because I want to change user or because I used the app on another phone not mine), the facebook SDK does not allow the total disconnection from FB, but only from my app X.
This is a problem because if I open the app "Facebook" for Android, I find myself still connected and if I close and reopen my app X, it notes that there is a FB session opened and It auto connect me with that user.
How can I make complete logout from FB from my app X?
Thanks
Ok, the only method to completely logout facebook is to disable SSO login and use the web version...
Just try to do the following: LoginManager.getInstance().setLoginBehavior(LoginBehavior.WEB_ONLY)
Pros: LoginManager.getInstance().logOut() works fine in this case.
Cons: the authentication will always appear in a webview dialog.

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?

Categories

Resources