How to connect to Twitter from iPhone? - iphone

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.

Related

Add Facebook log-in button

Edicy.com doesn't support php and I was wondering what html code to add to enable Facebook log-in that doesn't require php.
I'm also wondering if I need to sign up as developer and get an ID in Facebook to be able to use the code.
Thanks in advance for any help!
Follow these steps:
You need to register as a developer here (free of course).
Then create an app from here. And configure the appropriate settings.
This will get you an app id, which is used in the code
Without PHP, yes of course, integrating the javascript sdk is too simple.
Integrate the facebook login from here - trust me too simple!
Rest, if you find any difficulty you'll find its solution here in stack!
I hope that helps. Good luck!

Do I need a library for Codeigniter to create a Facebook application?

Do I need an entire library to crate a Facebook app with Codeigniter? I have not made an app for Facebook before the the developer documentation looked simiple. Beyond using my "secret" id for my app what else would I need to do to send my output via my view back to the facebook canvas? Are things more complicated than they seem? Don't I just output to my view as normal except things go to the canvas? Thanks.
No, you do not need a library. You can make all requests to the Facebook Graph api using cURL or any other method to call urls. However using the Facebook PHP SDK does help, it has a lot of helper methods that you'll find useful, do check this link to the documentation for the sdk, it's helpful.Hope this answer helps you.
p.s: And yeah you just output to your view as any other web app
No, you do not need a library, but it will make the process much smoother and take care of a lot of baseline functionality that you will need.
You might checkout my post here to see exactly how to integrate the offical facebook SDK within a codeigniter application as a stand alone library...

Twitter OAuth Login Page on the iPhone

I have Twitter integrated into my application, with the help of Sharekit. Everything works pretty well except, if the user happens to tap on the "Sign Up" link on the Login/allow page, it goes to a non-sign up error page. Either a "Sorry that page doesn't exist" or "Hold up! Sorry the profile you were trying to view was suspended due to strange activity."
The account I'm using is working as far as logging in, posting etc. But that link seems to go off into space. Also if I click on the "Twitter Gear"/Application Icon the dialog (web view with the Twitter OAuth Authorize page loaded) just closes.
I can't find anything about how to configure stuff like this and everything else seemed to work pretty easily. The closest reference I could find was,this link Twitter API Issue 1045
Thanks in Advance for any help
Update:
I've been checking a few other apps with Twitter support. Most of the ones I've checked (TUAW,Joystiq,TFLN) seem to have rolled their own Twitter Login Page (using XAuth I assume) the one I found that uses the Twitter OAuth page (Shazam) actually takes you to mobile Safari and it exhibits the same behavior. Maybe I need to roll my own login?
I suggest you go into the ShareKit class files, go to the two .m files that have "twitter authorization" (im not sure which of the two it is, a simple search on xcode should find it) and change the invalid url that it is being sent to to this URL: https://mobile.twitter.com/signup
That should fix your problem!
I suggest using a packet sniffer on your device to determine the exact URL being called when you click the "Sign Up" link. There are plenty of ways to do this, but it is easier on jailbroken phones. Armed with the URL, you can see if it is potentially something you are doing wrong or indeed a twitter bug.
Try Jan Rain it makes it easy to integrate this functionality without errors.
http://www.janrain.com/products/engage/mobile
Here is a ShareKit folk I am using: https://github.com/baotuo/ShareKit
It looks do not have your issues and have much more improvement. You should give it a try.
When you implement twitter integration, you should not use the library which you used in older projects but download new twitter library. I had some problems with twitter oauth when I used older library. But after download and use new library, the issue was fixed.

How to integrate twitter,facebook into iPhone app ?

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

Validate login page in Twitter in iPhone

I am woking on twitter application. I have used "Twitter Request" package and implemented in my application and posted a tweet messages successfully. Now i want to validate the login page, whether the user typed the user name and pass word is correct or not. If the user types the correct datails, the message will be posted otherwise display some alert message. And i have one doubt, which API is used to better in the appln?(MGTwitterEngine,Oauth etc.,). I am very new to this topics. So please guide me. Is there any sample code or tutorials are availble for validation?.
Thanks.
Follow the link.
http://www.reynoldsftw.com/2010/03/using-xauth-an-alternate-oauth-from-twitter/
http://aralbalkan.com/3133
I hope definitely it will help you.
Twitter Request Package is not enough to implement TWitter (to validate) login authentication and for implement that before you should be known about OAuth or XAuth process. I successfully implement that with XAuth authentication after period of long time. If you follow the link then you can do twitter validation as you expect.Click Here