facebook dialog ios for login - ios

I have followed the example of Facebook SDK for iOS (Hackbook) and it works well however whenever the person is logging in the app takes take the person to Safari or the Facebook app (if you have it installed on the device). Is there a way I can call the permission without leaving the app.
Thanks

there once was. But facebooks says that you should use SSO (single sign on) with the official facebook app. So even if you'd modify the files of the facebook-ios-sdk, it would probably not work.

Related

IOS Apps login via Linkedin authentication SDK

i'm created a IOS app in Xcode7 using swift , and now i am trying to integrate LinkedIn authentication to login into my iOS app.
So i created a account and application in LinkedIn developer site..
But my requirement is to use the same LinkedIn application account to login into my all iOS apps.is it possible?
i heard about deep linking concept.Any one know more about that?
Is it possible?
Yes it is. In your app preferences, go to Mobile > iOS preferences, then add the bundle ID of each app you want to be linked with LinkedIn.
Deep linking : Any one know more about that?
It allows you to bring users into a more specific part of your app that is not home page. For example, after opening a notification, you can bring user to a specific post into your app. That is an example of using deep links. Nevertheless, I don't think it is what you are searching for.

Facebook logout after posting iOS- Kiosk App

I have a kiosk app. I need users to login to post on facebook and immediately after posting force the facebook account to expire or logout.
In my understanding, I though couldn´t use the Social Framework of ios 6 because doesn´t work for the login/logout of many different users because it´s attached to an account in the settings of the device. So, I used an old code Facebook of Andy Yanok prior to ios5. Everything works perfect, except that so far I am not able to logout the session, after posting. At the moment I am looking for alternatives, maybe with the ios facebook SDk or inside the facebook app. I have cero experience with facebook apps so I have no idea if that is possible.
So, I would like to know if someone has experience with implementing facebook on an ipad kiosk. And how can I perform log-in window, posting and logout in the easiest way. If this can be done with the fb sdk or which is the fastest alternative.
If the facebook app is the option, please explain with detail , like I said I have very little experience making facebook apps.
Thanks!!
Ok the solution I used for this was to use the same Facebook code I already had and add some additional code to the log-out in the Facebook.m to delete the cookies. I found the code to implement here

Share using Facebook Application

Right now I'm using a Facebook SDK to share posts from my application. The problem is that this sdk pops up a webview inside my app and asks the user to log in. There has to be a better way.
Can I send the share information to the facebook app on the users device (If they have it installed)? Or at least leverage the facebook app to check credentials? If people have to sign in to share, they probably won't do it..
The latest Facebook SDK 3.5 includes a native share dialog. If you follow the authentication workflow according do the documentation and the phone is on iOS 6.0 you should not get a UIWebView during authentication, instead you will get a UIAlertView.
Facebook login process would use WebView only in a few cases. Some of them are:
1) You are asking it to do so explicitly, by using - (void)openWithBehavior:(FBSessionLoginBehavior)behavior completionHandler:(FBSessionStateHandler)handler; which, I think, is not your case.
2) If there is no Facebook app installed on the device, FB SDK falls back to using WebView login window.
3) Probably, this is your case. If you are requesting publish permissions on the first attempt to open FB session, FB SDK will also fall back to old login flow envolving WebView. In the new login flow, FB session is supposed to be open with read permissions first (in that case, FB will use fast app switching or native iOS FB login):
+ (BOOL)openActiveSessionWithReadPermissions:(NSArray*)readPermissions allowLoginUI:(BOOL)allowLoginUI completionHandler:(FBSessionStateHandler)handler;
Then, you should ask additional publish permissions from the user:
- (void)requestNewPublishPermissions:(NSArray*)writePermissions defaultAudience:(FBSessionDefaultAudience)defaultAudience completionHandler:(FBSessionRequestPermissionResultHandler)handler;
That way, user will not need to log in (if he is logged in FB app already), but there will be inconvenience of double switching from your app to FB (though it works rather fast lately).
I was looking for a cleaner way to get publish permissions with FB Single Sign On on the first call, but unfortunately didn't find anything working yet.

iOS Facebook SDK: which login system is better?

I am developing a iOS application which allows users to login by using their Facebook account.
I managed to implement the login procedure thanks to official tutorial I found here https://github.com/facebook/facebook-ios-sdk. I found here https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/ another tutorial which looks pretty different since in the first tutorial the user signs in through Safari, instead in the second tutorial the native Facebook App is used.
Among these two systems, which one is better? Perhaps by using Safari I could avoid any issue concerning back compatibility with older versions of iOS?
Thanks!
If you're using the official Facebook SDK, here's what happens:
If a user does have the Facebook app installed, they'll be taken to it to authenticate and login to your app.
If the user does not have the Facebook app installed, they'll be taken to Safari to authenticate and login to your app.
Either way, the login process is the same. After they authenticate, they're returned to your app using a specific URL scheme so that you can continue with what you're doing.
Finally, if you're targeting iOS 6 only, you can take advantage of the single sign on features built into iOS. Check the docs for more information on that.

How to avoid "App is allready authorized" with Facebook SDK 3.1

Every time i want to login through the Facebook idk, safari will be opened and tells me that my app is allready authorized. But i dont want to show this screen everytime a user logs in with Facebook. I followed the instructions over here to implement facebook login functionality. If the auth button is clicked i simple call the openSessionWithAllowLoginMethod which then handles the rest for me. But i dont how to apply the functionality, that it wont show the authorized screen everytime, to this code ? I would really appreciate some tips or hints.
Fill out every field related to your app in the Native iOS App section of the Basic Settings in the App Dashboard. If these fields are not configured, we can't drive traffic to your app or the iOS App Store. In addition, we use the iOS Bundle ID to streamline authentication for users who already authenticated your app. Pro-tip 3: Complete all iOS App Settings

Resources