How to send Tweet via your iOS App (NOT Twitter) - twitter

In my application I need to generate a link and needs to share on Twitter and Facebook. For Facebook I have used its SDK but for Twitter I am not able to find any such SDK which I can integrate in my app and make it able to Tweet it.
On Twitter site I saw REST API but I think that cannot be used for Tweeting. One more thing, I have integrated the Twitter with the help of Social.framework but in case if user hasn't provided his/her details in iPhone then that code won't work and I think if Twitter App is installed in the iPhone we can just launch the app but I cannot pass Data to be Tweeted.
How would you have handled this situation?

http://wiki.akosma.com/IPhone_URL_Schemes#Twitter
Try using one of these URIs. You need to handle the case where the user does not have the app installed also. For that I believe you will want to launch the browser and send a web intent.

Related

App requests in Facebook without re-logging and use session in Social Framework

I've successfully connected in Facebook using Social Framework, also able to get list of my friends. However, I need to invite friend to use my app, I have been reading some articles and stackoverflow, that this need to use Facebook SDK.
Now, I able to achieve this using Facebook SDK. but then I need to re-logging (show pop up or direct to FB app). What I want is, to use session or outhToken that I have while I connected using Social Framework and use it in Facebook SDK. what I know, I have outhToken already. how to use this maybe to pass in FBSession or whatever class object to show app request ?
below is sample of app request.
For those who stumbled this question,
Facebook now remove graph API to grab friends that doesn't install the app. hence we cannot invite friends who doesn't install app.
even using Facebook SDK. if anyone has better solution or any updates on this, please share.

Is it possible to login in twitter within an iOS app and not use the twitter account that is stored in the settings of the device?

I want to do this because I am building an app, which is going to be used within a campaign and many people will be asked to login in their twitter account, in the same device.
Instead of using the default account of the iOS device, you can use Twitter's own OAuth tokens and then handle them independently in your application.
You can see the documentation at Twitter's Developer Site

Tracking Facebook Ad Users

So we use Facebook Ads for Mobile to get users for our iOS app.
I've been looking through the documentation and I can't seem to find a way to know WHEN the user who has come into the app is a facebook user. Facebook can send app insights and I assume that means that somehow the SDK knows if the user is a converted Facebook user or not.
Is there any native API call that I can use to determine if the user is in fact a facebook app install?
I would also be cool if there was a third party service that did as long as it is reported INSIDE the app wether they were from Facebook or not.
Any help would be appreciated.
32 {'action.type': 'mobile_app_install', 'application':APPLICATION_ID} Number of times users install the app through a mobile app install ad if there is an iOS/Android version
check this link: https://developers.facebook.com/docs/reference/ads-api/tracking-specs/
Suprising I did not think apple would allow facebook to access information that would also facebook to know whether the user actually installed the app or not as It just redirect's the user to the app in the app store.

iOS Facebook SDK: which login system is better?

I am developing a iOS application which allows users to login by using their Facebook account.
I managed to implement the login procedure thanks to official tutorial I found here https://github.com/facebook/facebook-ios-sdk. I found here https://developers.facebook.com/docs/tutorials/ios-sdk-tutorial/authenticate/ another tutorial which looks pretty different since in the first tutorial the user signs in through Safari, instead in the second tutorial the native Facebook App is used.
Among these two systems, which one is better? Perhaps by using Safari I could avoid any issue concerning back compatibility with older versions of iOS?
Thanks!
If you're using the official Facebook SDK, here's what happens:
If a user does have the Facebook app installed, they'll be taken to it to authenticate and login to your app.
If the user does not have the Facebook app installed, they'll be taken to Safari to authenticate and login to your app.
Either way, the login process is the same. After they authenticate, they're returned to your app using a specific URL scheme so that you can continue with what you're doing.
Finally, if you're targeting iOS 6 only, you can take advantage of the single sign on features built into iOS. Check the docs for more information on that.

Facebook registration

I need to add the 'Share' on Facebook and Twitter buttons to my iPhone app. Before I get any further, do I have to go register on Facebook Developers, under Mobile Apps, in order to get an App ID (and then implement the Single Sign On)? How about Twitter?
First of all you need to register your app in facebook and twitter under development
For twitter go to this http://dev.twitter.com and for the facebook go to this http://developers.facebook.com/docs/guides/mobile/
when you register your mobile app you will get api key go to http://www.getsharekit.com . here is the open source api for share item (text, image , file , link ) to share on facebook , twitter and many more.
just check it.
Thanks
Yes, you do need to register with Facebook and be issued an App ID. Without this, you won't be able to do very much at all with their API. All the information you will need is available here:
https://developers.facebook.com/
...as well as the facilities to create your app and App ID.
If you are intending to use Facebook and Twitter official SDK, you will have to get ID from their respective developer console. For Facebook the official SDK can be downloaded here and for twitter the official SDK is here.
Updated : From iOS 6 onwards, you can use Apple's own Social Framework to share with Facebook and Twitter.

Resources