Facebook Login issues - ios

recently Facebook has removed from iOS the possibility to open up their app to login and instead it opens up a web view to proceed with login.
I'd like to know how to prefill the web view with data taken from the Facebook app (if it's installed)

Related

How to share Auth0 session from iOS app to SPA on same tenant

I successfully implemented Auth0 login on my native iOS app, all credentials are stored and all works well. Problem I'm facing is when I want from that app to open url on button tap in (wkwebview, or safari, or in sfsafaricontroller), that link walk me to single page app which is on same tenant as my iOS app, this web page want from me to enter again email and password. Is anyone achieved single sign on between iOS app and spa it this way?

Is the Facebook login process fundamentally different for iOS vs. Android?

I'm an Android programmer and I hired someone to write an iOS version of a Facebook app I wrote. A dispute came up regarding the login process on both platforms. In the Android app, when I log in to the app the first time, I see a screen from Facebook prompting me to continue, but after the first time, I don't see the screen; I just go directly to the app. He claims that under iOS, we can never bypass the Continue screen: it always displays. In his words,
"Tip: In order to clear the login token totally you need to logout from Facebook in safari browser as well since we can't clear that token of safari browser programmatically. it is not permitted on iOS."
Is this true?
EDIT: Here's what my developer replied:
"I didn't explicitly set the login behavior. it should be selected as default value."
and
"The Facebook SDK automatically selects the optimal login dialog flow based on the account settings and capabilities of a person's device. This is the default sequence that the Facebook SDK implements:
Facebook App Native Login Dialog
Facebook App Web Login Dialog
Mobile Safari Login Dialog
If the Facebook account is not set up, the Facebook SDK checks to see if the Facebook app is installed on the device. If the Facebook app is installed, the Facebook app native login dialog is presented if it's supported. If the Facebook app native login dialog can't be displayed because there's an old version of the app, the Facebook app web login dialog is presented. If the Facebook app isn't installed, mobile Safari is launched to display the Mobile Safari login dialog." I'm not clear on how all this is relevant to the issue, though.

While building sign-in with twitter on safari for iphone, how can I use the accounts already added in my settings

Im trying to build sign-in with twitter on my web application, which redirects to twitter for sign-in shows app permissions page etc and comes back to my application after authentication, what I actually want to do is, if I have twitter app installed, and Im signed into it, I want to use that information in my web application running on safari.
How do I do that in case it is possible.

What is the expected behaviour of Facebook login?

I want to know what the expected behaviour of Facebook login integrated in an iPhone app is, when a user is already logged into Facebook on the device through Facebook app, and the app is granted the required permissions in the previous login. I want to know if the app exits and starts again, should it still switch to Facebook app/website to check the permissions or should it silently log the user in without getting out of the app? Currently, my app switches to Facebook, detects that the user has already granted access, asks for an Ok or Cancel and comes back to the app. I wan to know if this behaviour is expected, because it seems it's doing nothing but unnecessary switching. I have asked this question in another form and I have included my code. Here's the link: http://bit.ly/1E1u2VI
Thank you!
It silently log the user in without getting out of the app. For that you can check the current user's permissions.
This might help you:
Controlling Login dialogs
The Facebook SDK automatically selects the optimal login dialog flow based on the account settings and capabilities of a person's device. This is the default sequence that the Facebook SDK implements:
Facebook App Native Login Dialog
Facebook App Web Login Dialog
Mobile Safari Login Dialog
If the Facebook account is not set up, the Facebook SDK checks to see if the Facebook app is installed on the device. If the Facebook app is installed, the Facebook app native login dialog is presented if it's supported. If the Facebook app native login dialog can't be displayed because there's an old version of the app, the Facebook app web login dialog is presented. If the Facebook app isn't installed, mobile Safari is launched to display the Mobile Safari login dialog.
Here are the screenshots of code
I have checked the login process using safari browser it's work for me. [FBSDKAccessToken currentAccessToken] is working fine. I am attaching some screenshots might help you.

Redirecting user to iOS facebook app for authentication instead of browser window

I'm fairly new to iOS Development and trying to use Facebook SDK for authentication for my app. I have done the integrations and whenever I click on the Login with Facebook button it opens a browser window in the app for authentication. How do I redirect the user to the inbuilt Facebook app which the user uses instead of a browser window if facebook is installed on the phone.
In iOS9 it is not possible switch with Facebook netive app .. For that you should try out other older version of Facebook sdk.
Please check below link.
https://developers.facebook.com/bugs/786729821439894/?search_id
Hope this will help you.
Link for Facebook sdk try it.
https://developers.facebook.com/resources/FacebookSDKs-iOS-20150708.pkg

Resources