Am developing an iPhone app. From my app user can to follow my twitter account. I want to add the Follow twitter button in my app. When the user press the button make the user to follow my twitter account. Before i didn't used any twitter api and twitter functionality so am struggling to make this. Can you please help me to follow another twitter user account from the app itself? Thanks in advance.
Without plugging into another twitter app or anything you could probably open a URL to do the job.
- (IBAction)followMeOnTwitter:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:#"https://twitter.com/intent/user?screen_name=<twitter_screen_name>"]];
}
Just replace the end of that URL with your twitter account name, and it should open to follow that account in the browser. Be sure to connect your button to "followMeOnTwitter" by including it in your view's .h file.
Related
My question is two fold. Firstly the screen that gets generated when the user does not have a twitter account and clicks on the sign up button in (Native Twitter iPhone App) like the image below. Is it Default screen or is it created programmatically?
If it is default iOS Screen, then how do i get my app to generate it.
If it isn't then what process will I be following exactly to sign the user up with Twitter given I have his credentials
link
Thanks in advance
It is default screen. No need to add extra code for it. If you call twitter share and you weren't signed in, in twitter it will show a dialog box. click settings will navigate to twitter sign in.Clicking create new account will navigate to sign up page. There is a bug in twitter app in older versions of iPhone simulator.but in new iPhone simulator you can sign in , dont know sign up actually works.
I have idea! E.g I send invite to application for my friend by email. I wanna have link in this email. When user will click it, he will open application, if it's installed, if it's not - show iTunes store. Any idea how to realize it?
Communicating with Other Apps
I begun to read this one, but didn't find solution yet.
I provide the method to check whether an app is installed on iphone.
If the URL scheme for your app is "myapp:", then
BOOL myAppInstalled = [[UIApplication sharedApplication] canOpenURL:[NSURL urlWithString:#"myapp:"]];
I'm building an app that needs to start a video conference from an iPhone.
They way i've implemented it is to first check if Skype is installed, if it is, i start video conferencing with skype.
If not, im checking if the Google+ app installed. And if it is i want to open that app with a Google+ username to start a hangout with the user.
an example would be:
[[UIApplication sharedApplication] openURL:"googleplus://username#gmail.com"]
Do you know if this is possible, and whats the correct identifier to call?
Currently, there is no way to start a Google+ Hangout with only an API call. However, there is a Google+ Hangouts Button that will start one.
https://developers.google.com/+/hangouts/button
I have used Twitter framework for login and tweet from iphone app .Now i want logout when one switch is set off so how i can do this?
Can any one help.
Thanks in advance.
The Twitter.framework is a system wide implementation of Twitter and you can't log an user out since the user is logged in to twitter with just you app but the hole system.
I'm making an iPhone app that has information about different video games. How can I implement a shopping API that will allow me to redirect users who choose to buy a game?
In other words, I'm looking for some kind of affiliate program API that works with the iPhone and lets me place item buy buttons that redirect the user to a product page.
Thanks.
Your intent is unclear. Are you trying to sell content for your application? If so, there is an established, Apple-approved way to do this:
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/StoreKitGuide/AddingaStoretoYourApplication/AddingaStoretoYourApplication.html
If you're trying to sell something non-iPhone-related, you should redirect to a web page that actually handles the transaction. You can do this as a link that opens a page in Safari, or as an embedded UIWebView.
The first approach is simplest:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: #"http://www.google.com"]];
The second a little more complicated:
http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UIWebView_Class/Reference/Reference.html
If your question is really asking how to build an entire product purchase API, then, not to sound sarcastic, I suggest this site as a useful starting point:
http://www.amazon.com/books/
what about pointing to the itunes page, e.g.
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&mt=8
if you replace "itunes" by "phobos", the app store will be opened when using the iphone to open the linkg, e.g.
http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=300136119&mt=8
Sorry, I may be misunderstanding what you are asking but I'm interpreting your question as you want to create an "app discovery" app where you recommend other iOS games in the App Store. If this is correct then you will want to use the iTunes / App Store Affiliate Program.
More info here -
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-app-store-affiliate-program.html
The API you would then use is the "Search API." More info about that can be found here -
http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html