No SSO Configure option in Facebook iOS App Setting - facebook

We are trying to create a Facebook Page for our iOS APP. But we are getting the following error - "Your iOS App does not appear to use Single Sign-On (SSO)".
In Facebook iOS App Setting page, we have enabled Facebook login, but we could not find any option to enable SSO as shown here - https://developers.facebook.com/blog/post/640/
Please help us in setting up SSO in Facebook settings page.

Related

iOS app does not appear to have Facebook Login integration

I want to integrate facebook with my iOS app because I want to promote my app in facebook. I want to create an ad campaign on facebook to get more users for my iOS app. I have created my facebook app as it is said in the guide but facebook doesn't approve my app, if I disable Facebook login it says that "Mobile apps built for iOS and Android must use Facebook Login."
So I enable facebook login and facebook says that "Your iOS app does not appear to have Facebook Login integration. Please either implement Facebook Login or remove this integration as a listed platform in the developer app."
I don't know what to do and I'm very upset.
Thanks.

Login with Facebook using SocialFramework

I want perform a login using Facebook credential. This is possible using Facebook SDK with this step:
Create a Facebook App on facebook.developer.com
Import Facebook SDK in Xcode
Use Facebook SDK to perform login (this action open Facebook application on iPhone, and after it re-opens my application)
I would avoid open Facebook app and perform login inside my app, like Pinterest.
Using SocialFramework is it possible ?
Thanks
Yes, it is possible. The latest Facebook SDK logs in using the FB account defined in system settings if available and falls back to Facebook app and/or website if not.

FBWebDilaog shared URL redirecting to app

I am using FBWebDialog (supported in the new facebook 3.2 SDK) to share on facebook in from my ios application. I am setting a youtube link for the link parameter passed in the arguments
for the FBWebDialog. It shares the link but on tapping the link from the facebook account logged in from the facebook app on the iOS device redirects me to the app, if the app is present in the device. If the app is not found on the device it directs me to itunes page of my app. This is an anomalous behavior as the it should redirect me to youtube link. However, if I login to the facebook account on a PC and click the shared link it redirects me to youtube link.
How do I fix this?
Go to your App Dashboard settings: Basic > Native iOS App, then turn the Deep Linking to Disabled.
You want to turn off deep linking back to your app. This will however, turn deep linking off for all links from your app.

Logging into our site as part of FaceBook authentication on iOS

When a user clicks on the login with Facebook button on our website, we call:
https://www.facebook.com/dialog/oauth?client_id=xxxxxxx&
redirect_uri=http://xxxxx.com/Account/FBLogin&scope=email,publish_stream
Inside of our FBLogin (string code) method we do two things. First we call:
"https://graph.facebook.com/oauth/access_token?client_id=xxxxxxxxx&
redirect_uri=http://xxxxxx.com/Account/FBLogin&client_secret=xxxxxxxxxxxxx&code=" + code;
Then, if the FaceBook login was successful, we login the user into our site.
What is the equivalent of this workflow in iOS? We basically want to authenticate the user on our servers as part of the Facebook authentication. So when the Facebook authentication returns successfully, our user is also logged into our system.
Many thanks!
If you're using the Facebook iOS SDK, the SSO (single sign on) workflow is more like the Javascript SDK's workflow because the user is presented with what's similar to the JS SDK's popup: either in the form of a UIWebView, Safari Browser, or Facebook app (depending on the user's setup).
One of the most compelling features of the iOS SDK is Single Sign-On
(SSO). SSO lets users sign into your app using their Facebook
identity. If they are already signed into the Facebook iOS app on
their device, they do not have to type a username and password.
Furthermore, you can get permission from users to access their
Facebook profile information and social graph.
SSO primarily works by redirecting users to the Facebook app on their
devices. Since users are already logged into Facebook, they will not
need to enter their username and password to identify themselves. They
will see the Auth Dialog with the permissions that your app has asked
for, and will be redirected to your mobile app with the appropriate
access_token.
Developers should be aware that Facebook SSO will behave slightly
differently depending on what is installed on a user's device. This is
what happens in certain iOS configurations:
If the app is running in a version of iOS that supports multitasking,
and if the device has the Facebook app of version 3.2.3 or greater
installed, the SDK attempts to open the Auth Dialog within the
Facebook app. After the user grants or declines, the Facebook app
redirects back to the calling app, passing the access token,
expiration, and any other parameters the Facebook OAuth server may
return.
If the app is running in a version of iOS that supports multitasking,
but the device doesn't have the Facebook app of version 3.2.3 or
greater installed, the SDK will open the Auth Dialog in the Safari
mobile browser. After the user grants or revokes the authorization,
Safari redirects back to the calling app. Similar to the Facebook app
based authorization, this allows multiple apps to share the same
Facebook user access_token through the Safari cookie.
If the app is running in a version of iOS that does not support
multitasking, the SDK uses the old mechanism of popping up an inline
UIWebView, prompting the user to log in to Facebook and grant access.
The FBSessionDelegate is a callback interface that your app should
implement: The delegate methods will be invoked when the app
successful logs in or logs out. Read the iOS SDK documentation for
more details on this delegate.
... when the user finishes either signing in or not signing in and returns to your app from the "popup", your app has to decide what to do based on whether or not the user logged in/authorized the app (and a valid access token received).
Please read this for more info:
https://developers.facebook.com/docs/mobile/ios/build/#implementsso

facebook authorization dialog style

in Facebook official website, iphone authorization dialog is
while when I work follow its steps(iOS for iPhone/iPad): http://developers.facebook.com/docs/guides/mobile/
I got the authorization dialog as follows which is the same as Mobile Web.
Who can tell me why?
How can I get authorization dialog as the iphone one in Facebook official website?
On the latest versions of iOS on the device and if Facebook app is installed on the device there will be login dialog. If Facebook app is not installed, then it will open Safari to obtain the access token. This is by design of Facebook iOS SDK. You can patch the SDK if you don't want Safari in in any case.
see authorizeWithFBAppAuth method in Facebook.m
hope this helps