how to login in twitter using oath - iphone

I am building a twitter application that is currently using the classic login instead of OAuth. I don't know how to use Oauth to implement login.Please anybody help me to provide some help regarding how to login through OAuth login

If you want to be done with it as fast as possible, use Ben Gottlieb's Twitter-OAuth-iPhone library. If you want to know exactly what happens, plan a few days to read all you can about OAuth, and then several weeks to implement.

Related

Spring Boot + Angular 4 + Social and Local Login

I have been searching for the best way to build an application using Angular 4 (client application running over apache2), Spring Boot (Rest Controller) and Social and Local login.
I am kinda new to all of this, and I've be looking around for about one month and still have not a good idea how to implement that! Couldnt find a good tutorial for the tecnologies mentioned above...
I need to be able to let the user login via system's own login and social login like facebook and google. Could someone please point at the right direction?
I am not sure if that I am on the right track... I thought that would be easy, but I feel very confuse and dont see how to integrate the response from spring with my angular application. And the login with social networks will not be direct with the angular application. The user will authenticate with facebook, for example, and when facebook redirect to spring, Ill retrieve the user associated to that social networks account and return that to my angular application. In the angular 4 application, Ill should be possible to invite friends and use some other social networks related features.
Here are some of the tutorials i've read:
http://www.baeldung.com/angular-4-upgrade-for-spring-security-oauth/
https://spring.io/guides/tutorials/spring-boot-oauth2/#_social_login_click
Can someone help me, pointing to the right direction, or placing a good tutorial or anything that would help?
I ended up by just using an angular module called ng-social-login. At the backend, I called 'https://graph.facebook.com/me' passing the token that came from frontend.
Thats all. Using spring social wasnt really a good idea at all
I am not sure if you can use spring social with Angular4 as front end. you might want to explore direct call from backend server to facebook graph API with tokens.
Easy way is to use Angular4 and Javascript SDK provided by facebook, G+, twitter.

ios twitter OATH integration not working

I am using Oath authentication in my ios app for twitter integration.
It was working fine earliar but now when I authenticate user then it sends me on this page. Whats going wrong. is there any change in API?
I think you are using older API that stopped working So now you have to go for new Solution.
Apple Introduced Social Framework that Allows Facebook, Twitter sharing without doing much more & with less efforts.
use This.
Hope this will help.

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.

IOS Good practise to login using facebook and twitter

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/

using OAuth authentication in iphone for twitter

Hey guys I am trying to implement the twitter for posting the comments about my music application.For that I use OAuth authentication twitter but it give me error
please help out I didn't know anything in this.
it show's me this error
"'TWITPIC_API_KEY' undeclared (first use in this function)"
if i need some key in this than where to find this key .How to implement this key .
Guys I realllly didn't know anything .please help me .
Thanks in advance .
You need to create and generate an API key with Twitter and Twitpic for your application. You can do that at: http://dev.twitter.com/apps (twitter) and http://dev.twitpic.com/apps/new (twitpic)
Once you've created your application on the twitter and twitpic sites, you'll be provided with the keys you need (referred to as consumer key and consumer secret on twitter iirc).
Then, and this is hard to help you with completely as you've not stated which ObjC api you're using or provided code, update or define TWITPIC_API_KEY with your API key.
Implementing oAuth or xAuth to post tweets to twitter may be quite tricky. But to help you out with your problem we need more information on the libraries you are using to implement OAuth.
Your "TWITPIC_API_KEY" error looks like you're using a library not quite suitable for your purpose: I assume you don't want to post your comments as pictures to Twitpic ;-) So, if you want to connect your music app with twitter to post tweets there should be no need for a TWITPIC_API_KEY. You would only need a Twitter-API-Key as dannywartnaby suggested.
Here's a list of OAuth / XAuth / Twitter libraries which you may use for implementing the feature in your application: http://dev.twitter.com/pages/oauth_libraries#objectivec
MGTwitterEngine is quite popular ... but the choice depends on your functionality & licensing needs.