How to create just an authentication with facebook sdk in iOS? - ios6

In my iOS app I just want to create a login button and when this button is pressed, the user must login using his own facebook account.
I don't want to use other facebook features after this, only authenticate the user's account information.
Thanks!

Check out this guide. It goes through a step-by-step tutorial of how to install the Facebook SDK for iOS and how to use it to log in.

Related

How to retrieve Facebook's user data from "developer Facebook"

I want to create a web app for educational purposes in which I required a search bar which helps me get Facebook's user data
For example: username, image
These two fields are enough for me.
Is it possible for me to retrieve such data using React.JS?
Here is the basic steps:
Create a facebook app and add facebook login to it.
Setup facebook login allowed SDK URls (where you will call the login method) and redirect URL after login.
Add needed permissions to your app
Add facebook SDK scripts to your react index.html or install the SDK.
Using the SDK call FB.login() and from the response save the user access token
send a request to FB_API_URL/me to get the user data you want
before all that test your requests to the created app with FB graph API Explorer https://developers.facebook.com/tools/explorer/
Last step: submit your app for review as most permissions will not work before this step.
useful links:
https://developers.facebook.com/docs/graph-api/get-started
https://developers.facebook.com/docs/facebook-login/web

Instagram Oauth - allow user's to choose which account to login with?

I've integrated my React app with Instagram Basic Display. My user's are successfully able to link their Instagram account to my app.
However for user's that have multiple Instagram accounts, I've noticed that the Authorization Window displayed when going through Instagram's Oauth flow does not contain the ability to switch accounts.
Is their some way to enable user's going through the Instagram Oauth flow to switch between accounts and select which account they would like to link with my app?
If you add force_authentication=1 to the login oAauth URL, it will force the user to enter their credentials.
https://api.instagram.com/oauth/authorize?force_authentication=1&client_id=${IG_APP_ID}&redirect_uri=${IG_REG_REDIRECT_URL}&scope=${IG_REG_SCOPE}&state=1&response_type=code
I take no credit for this answer, I found it in another questions here: https://stackoverflow.com/a/71787472

How to do facebook login with GAE Python endpoints

I am new to GAE Python, I want to give user option to login with facebook. I am already being able to add SignIn with Google. How I can implement facebook login ?
My answer to this question points to a Google auth solutions choosing guide: What is the difference between Google identity toolkit, Google OAauth and Google+ sign in
I think that simpleauth for appengine can be what you need. I use it myself and it works.
To enable Facebook signin, please refer to Configure Identity Toolkit and search for "Configure Facebook login".

iOS native Salesforce login

I wonder if there is any sample code for an iOS native login screen using Salesforce mobile sdk. The sample apps from Salesforce all use Salesforce standard web login page. I wanted to customise it and add more Sso buttons.
You can auth users to SFDC without using their login page. It is just REST.

On iOS6, could my App share the account with integration Facebook account in settings?

As we know iOS 6 integrate Facebook, just as twitter. And we can login Facebook in settings and then post photo directly.
I follow by https://developers.facebook.com/docs/howtos/login-with-facebook-using-ios-sdk/ to create my app for testing with Facebook SDK 3.0.8.
After I login in Facebook on iOS6 settings, when I open my test app and login to Facebook, it still ask me to input my account/password.
So my question is: Could my App share the account with iOS6 integration Facebook account?
I mean: After I login Facebook in settings, could I don't need to input name/password again when I open my app and login facebook?
Support for the Facebook integration in iOS 6 is now available in the FacebookSDK (version 3.1).
In https://developers.facebook.com/ios/ say "We will be adding support for the much anticipated iOS 6 integration to the SDK in the coming weeks.". So the integration with the ACAccountStore is not implement yet. That's why your app ask the info again.
If you want to connect with the info stored in the iPhone setting, you have to use the Accounts.framework and Social.framework in the iOS 6 instead Facebook SDK

Resources