Native facebook app log in status in iOS - iphone

How to check if user is logged into the native facebook app or not in my another application in iPhone programmatically?

You can't check that. The Facebook SDK will allow user to login to your app. But it does not support any way to check if the user is logged in in the facebook app.

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.

iphone development: how to auto facebook login if the facebook app already logged in

In my app users can login by using facebook. I also have Facebook official app in my mobile phone and it is logged in. When I try to login from my app it asks for email and password. Is it possible to auto login if facebook app already logged in? How can I do that? because I know almost all apps use this feature
Have you considered Facebook SDK for iOS? Here is the link: https://developers.facebook.com/ios/

iOS Facebook SDK,how to login within App , not in safari

Is it possible to use the Facebook iOS SDK to authenticate within an app (not go to Safari), and also keep those authentication credentials for the next launch of the app?
I have usedFacebook SDK sample code SessionLoginSample to check . It opens the Facebook login account in the safari....I want it to open with-in the app ..
I am not using FBConnect as it is been expired ...How to use it for the Facebook SDK
of
https://github.com/facebook/facebook-ios-sdk ...its sample code
https://github.com/facebook/facebook-ios-sdk/tree/master/samples/SessionLoginSample
this sample code here~~
The Facebook iOS SDK will open within the app provided your user is on iOS 6 and has their Facebook account setup within the device. Otherwise, it will gracefully fallback to the Facebook App (if installed) and then only to Safari. From the SDK Docs:
The native Login Dialog is available after a user has logged into
Facebook on their device. If the device isn't connected to Facebook,
the native Login Dialog isn't available and permission requests will
be made via the fast-app-switch to the Facebook app (if installed) or
Safari. The Facebook SDK methods [...] will seamlessly fallback to
this fast-app-switch behavior.
If your user has neither Facebook configured on their iOS 6 device nor the Facebook app installed and you still want the login to happen within your app, your best alternative might be to pull up a UIWebView pointed to your own server somewhere that carries out a server-side login.
Bear in mind a big disadvantage of a UIWebView-based approach is that your UIWebView does not share cookies with Safari so even if the user is already logged in within Safari they'll still need to re-enter their username and password again in your app. I'd be a little hesitant to do so in a third party app since there's no way to know if they're spoofing the Facebook site and phishing for my credentials.
FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init];
login.loginBehavior = FBSDKLoginBehaviorWeb;

Check if someone is logged onto Facebook using mobile

I am developing an app only for mobile users. How could I check if a user is logged into Facebook using a mobile phone?
NOTE: If user is not logged in via mobile phone then content of the app should not be displayed.
Here is a brief guide on how to implement SSO(Single-Sign-On) for mobile devices.