IOS Good practise to login using facebook and twitter - iphone

we are developing a platform with web and one iphone application. We have our own system for authentication but we want to improve it in order to support facebook and twitter login.
Through the web we haven't any problems, but through the mobile application we don't know how to manage correctly the facebook login and we don't find any tutorial or cookbook that explains what are the steps to do it in a good way.
Should the iphone application request the token from facebook and then send it to the server? Or is better take the facebook_id and then send it? Since we don't want to have two different accounts for the same person, is it necessary to check if the emails is already in database?
Any help would be much appreciate or at least one guide / tutorial in order to read about this topic.
Thanks!

"Any help would be much appreciate or at least one guide / tutorial in order to read about this topic."
For the Facebook authentication for iOS, see: https://developers.facebook.com/docs/reference/iossdk/authentication/

Related

IOS linkedin integration (Send Connection Request, Search People)

I'm using the linkedin OAuth sdk.
I have the oauth functionality working and my iPhone App is able to successfully logged in to LinkedIn.
i want to implement these two things.
I want to search people using the JSON protocol.
I want to send connection request people which i got from search.
Please provide me assistance asap. suggest me Sample codes if any.
thanks in advance.
I couldn't offer you specific answer for your question, but you should check on this open-source project.
LinkedIn Share for iOS

OAuth integration in iphone app

I have one problem regarding OAuth integration in iPhone App.
Can anyone help me how to integrate OAuth 2.0 with facebook in iPhone ?
I have referred so many sites about OAuth but I haven't got satisfied answer yet. I referred this question of stackoverflow. There is one good option about ShareKit. But my client wants only OAuth 2.0.
I downloaded framework from google code. I integrated it in my application. But How to use it ? Without guidance I can't implement it in proper way.
I have got stuck between my application and 0Auth 2.0 since last 3 days. Please can anyone give me idea or demo project or any another tutorial ?
Rather than implement OAuth for Facebook, make use of the Facebook iOS SDK which makes handling Facebook Auth and Requests much easier. You can read about it and download it here... http://developers.facebook.com/ios/
I just done a research
This post will really help you
Also please look at the below posts
iphone-facebook-oauth2-graph-api
OAuth and Facebook iPhone SDK
The framework you mentioned in your post is not for OAuth 2, but for OAuth 1.0a.
You can try the OAuth2Client we developed for talking to the SoundCloud API. It's build against draft 10 of the spec. I'm not sure which one is used by Facebook. Unfortunately the spec is not final yet and over the years different services adopted different drafts of the spec.
If you're able to argue with your client I'd try to convince him to let you go with the official iOS SDK. This gives you many benefits like automatic token refresh, single sign on via the official app & much more.

iPhone: Social media integration

I am developing iPhone app where I need to provide integration with different social media like FaceBook, Twitter, Google etc. I have seen couple of iPhone applications that allow people to login using their existing FB or Twitter accounts and allow to post comments, like/unlike, follow people etc. I want to implement something similar but not sure where to start with. Could anyone please suggest me right direction? Any documentation and sample code would be great help.
Thanks.
http://developers.facebook.com/ has just about all the info you might need.
Further also look in Apples library as it contains sample code and extensive information about most topics.
#AppleDeveloper, check out Socialize; this is exactly the problem we're working to solve: http://www.GetSocialize.com. Full feature list at http://go.GetSocialize.com/features
The problem with just putting Facebook into your app is that your download base of users aren't all friends on Facebook. So any sharing in the app using Facebook will only go out to that user's friends.
Socialize lets all users of the app see the social actions other users of the app take, in addition to allowing those social actions to be shared on Facebook (and soon Twitter & Google+ as well). Then we give you a reporting dashboard so you can see the effect of all the social actions on downloads & user engagement: http://go.GetSocialize.com/dashboard
Let me know if this is the type of thing you're looking for.
DROdio

Facebook ,twitter and Linkedin integration with Full Functionality in iphone

I have experience of integration of facebook and twitter api. But Its just feed post.
I want full Facebook application which shows friends list their messages and events.
And i want same thing for twitter and linkedin.
If any body have idea or code for this please give me link or post that.
Thanks
the API for Linkedin You can refer this :
http://developer.linkedin.com/thread/1169?tstart=30
You can use UIWebView to load twitter and facebook. It will let you exploit the entire functionality offered by these two Social networking sites. Though It's not impossible to build an application the way you want it to be but using webview will save your time as well as efforts. Since you are already aware of the FB and twitter integration so I am sure you are already aware as to what all we can do from iPhone application..viz.. Setting Status, reading POSTS etc.. I am not quite sure about Linkedin.. Just in case if you come across any solution for this let me also know about that.

How long would it take to integrate Facebook Connect with a website?

I have a website where users can buy deals posted by the site owner/admin and I would like to integrate Facebook Connect with it. Can you please answer the following:
What tasks are involved with integrating Facebook Connect?
How difficult would it be for a programmer to integrate Facebook Connect?
How long would it take for an average programmer to integrate Facebook Connect?
I think it's a bit difficult, yes, but it's not impossible. It shoud be about 2-5 days to study, understand, make tests and make it works (it also depends on how much you know of the facebook platfrm):
Here is a tuorial I wrote:
http://www.barattalo.it/facebook-connect-tutorial/
it explains how to give the facebook login and how to post on users' wall.
There are multiple good tutorials available. I would say an average programmer (with some familiarity in JavaScript) would be able to do this fairly easily.
Facebook Connect Wiki
How to quickly add Facebook Connect
I have integrated Facebook Connect into 2 sites and the time it took varied from 3 days to 2 weeks. The time requirement depends on the size of the application you are integrating. It only took me 3 days to integrate Facebook Connect into a new site which did not have any existing users.
Putting in a Facebook connect or login button can be pretty easy now since there are some copy-and-paste solutions out there. If you're looking for a copy/paste solution that does some pretty simple members-only page protection, you can try this Facebook Login tool. It's free and gives some basic analytics, I think.
My point of view Facebook connect can be implemented by average programmer with in 2-3 hours If you aware about Facebook document and sound knowledge of API Key Secret.
Following documents that help for integrating Facebook into websites.
Document use PHP for server-side programming and HTML/JavaScript for client-side code. These examples are very straightforward and easily translatable to other languages.
Facebook Developer Tutorials.
This article shows few steps that describes how to integrate Facebook Connect into your
existing site.
efpa is brilliant for this, its easy to use and saves you hours, it would take you less than 20 min, there is a really good youtube tutorial on this, they use efpa to create a web application, let users connect using their facebook accounts and then present them their home feed, from creating a facebook app to writing the code in 20 min;
http://www.youtube.com/watch?v=ri8io0bmKOc
btw efpa stand for (Easy Facebook PHP API), the library was written to make facebook intergration easy and usable by anyone. Check out their documentations page http://labs.gurron.com/projects.php?proj=efpa&pg=docs