Parse - Linkedin Connect - ios

I'm trying to build an iOS app with Parse using a Linkedin Connect.
User taps connect with Linkedin button and authorizes app
Redirected to the app
Need username, email and password to create PFUser
Has anyone found a way to create PFUsers using Linkedin data without asking for a password, and make the flow very similar to a Facebook Connect?

Parse has offered APIs supporting logging in with twitter and Facebook. Since it has no direct support in Parse SDK. I think you have to make everything yourself. Maybe try to get the user's email from the linkedIn account and log in with this email as username.

Parse.com now offer a generic OAuth library with a tutorial for authenticating GitHub accounts.
https://parse.com/tutorials/adding-third-party-authentication-to-your-web-app

This can help you : https://github.com/ahmetkgunay/LinkedinIOSHelper
This Library has features like authorizes app, getting access token, login with linkedIn, getting user's all informations, autoLogin if the accessToken is still valid.

This repo may help you : https://github.com/alexruperez/PFLinkedInUtils
It provides utility functions for working with LinkedIn in a Parse application. If a _User with the LinkedIn id is found in Parse, it will retrieve the user. Otherwise a new _User will be created and sign up.

Related

How to unlink an app from twitter account?

I used API from https://github.com/abraham/twitteroauth
to integrate login feature in my website using oAuth api.
If user want to unlink app from twitter account then how to do that?
I tried to find method in sdk but didn't found.
The user goes to Settings->Applications on twitter.com to revoke access. Or, you can use the oauth/invalidate_token in your code to reset the token and require the user to login again to get a new one.

Integrating twitter login in IOS

In my IOS app i Want to add twitter login in order to fetch the user's information like Name, Email ID and Profile picture.Can anyone please provide me some useful information or some tutorial link that can help in integrating twitter login in my app and to fetch user information.
If you're just trying to do some really simple login stuff and are new to iOS, I would definitely check out Parse's Twitter Login tools.
https://parse.com/docs/ios_guide#twitterusers/iOS
Really user friendly and simple to get the hang of.
If you want to add twitter login to your app in a simple way, I would recommend you to use Fabric framework. Follow this link: https://dev.twitter.com/fabric/ios
Note: You can't bring user's email easily. You need to get permissions from twitter by filling a form in twitter website or else by sending email to fabric team.
Twitter Kit provides all the required functionalities and mechanism for making authenticated requests to Twitter's REST API.
Follow the configuration process here.
Using TWTRSession, you can request for TWTRUser object and that will have what you need.
This is the right way and advisable one too.

FHSTwitterEngine get stored account

I use FHSTwitterEngine for twitting from my app. I know i can use XAuth and OAuth to login twitter account, but I'm wondering if is there any way to login by getting Twitter account assigned to iPhone. I mean that I can assign my twitter account in setting in my iPhone and some app get this stored data from settings and can login user basis on it. Is this feature avaiable under FHSTwitterEngine?
Since it doesn't require/import Social.framework or similar, FHSTwitterEngine does not support iOS Twitter accounts.
Social.framework allows posting to twitter/facebook, but does not offer any information like OAuth tokens to log in outside of it.

Display Twitter Feed of user

I wanted to display twitter feed like in image
Is it necessary to do "OAuth" for this?? I am trying to do "OAuth" in using this url.
It is giving:
Access denied Sorry, you're not allowed to access that page.
Twitter feed should be of user which i will give username not who are logged in simulator or device. I am following this tutorial
"Twitter offers applications the ability to issue authenticated requests on behalf of the application itself" https://dev.twitter.com/docs/auth/application-only-auth
You can use - AFTweetFetcher - "Simple class for retrieving tweets from twitter using their new 1.1 API without requiring the user to authenticate or have a twitter account stored on their device"
All you need: ConsumerKey and ConsumerSecret
Yes, you need to authenticate.
Try this library https://github.com/nst/STTwitter if you don't want to use Apple's Twitter frameworks as this would require the user of the phone to have a twitter account.

Login through facebook into other sites - IPHONE

I have an application where i need to login to a website through facebook, twitter and the website's own login.
I'm not very sure how to login through facebook and connect it to the website. Like if i click on login with facebook button, it redirects to facbook login page( which is achievable with all the tutorials and information provided in the facebook developer documentation and the sdk) and then it is redirected to the website immediately after facebook login.
How to achieve this? Any suggestions or help to achieve this will well appreciated.
I also would want to know about the encrypted access token of facebook. How to use that access token. I have read the documentation, yet i have not got the concept so clear in my head.
EDIT: the website is already connected to facebook and twitter... I have to to the same on iphone.. I mean, the response i will get after login through facebook is an access token. Can i use this access token. How to link the response got after facebook login to the website to authenticate a user's login. This i need to do it in iphone.
Thanks in advance.
Here is an example on how to do it with php,
Facebook as Auth
EDIT:
As you mention you already have a website in place with facebook and twitter integration and only require to do it in iPhone.
For iPhone have a look at facebook sdk for iPhone.
What you get after a authentication from facebook in iPhone app will be a access_token. You can use this token to get the facebook userid. Match the same id with the one present in the website. This way you can validate a user.
For getting user details from acess_token try this.
graph.facebook.com/me?access_token=<token>.
This will return basic user information along with facebook userid.
Best of luck.

Resources