How can I post a message on Twitter from my app using OAuth authentication?
I'd like to post an invariable message with a variable link...
How can I do this?
Any source? Any tutorials?
Thanks a lot!
Use an OAuth library such as:
http://github.com/jdg/oauthconsumer
http://github.com/bengottlieb/Twitter-OAuth-iPhone
There are various tutorials out there like:
http://www.jaanuskase.com/en/2010/01/an_example_iphone_twitter_app.html
It can be tricky, especially since twitter has changed since some of the popular iPhone implementations were written, but this will give you a place to start.
Related
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
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.
I need share on twitter in my application through iPhone.App has to tweet in the twitter. There is a button action on clicking which twitter login page should open.
How to do this?
Code for this appreciable..
Thank You.
You can use Twitter-OAuth-iPhone. However, if you are using SDK < 3.2 then you need to download an old version. There is a demo app included which shows how to login and tweet clearly.
For a tutorial on this, check this.
Basically you need to refer to Twitter's page for libraries using OAuth on iOS.
Alternatively you may always use the "?status=" method:
http://mobile.twitter.com/?status=<YOUR MSG IN URI-ENCODED FORM>
However that may not work if the user have not signed in yet. Try the OAuth methods which would be harder to implement but safer for sending messages.
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.
I want to put facebook,twitter,flickr into my iPhone app, so that users can easily login in and post message from my app easily.
Put the question here is to get some clues or existing works for this purpose.
After searching, I get some related works here
http://code.google.com/p/iphone-facebook-twitter-connect-easy-integration-tool/
What is the best one you used ?
There is a new open source project that provides support for both:
ShareKit
This issues has already been discussed a lot in SO.Try to search SO before posting your query.
For Twitter try MGTwitterEngine.
For facebook try Facebook API
For flickr try objectiveflickr
Chk these
Facebook API
Twitter API