I currently have an iOS app with facebook integration that allows users to post their photos to facebook.
I want to add twitter integration as well, but I couldn't find any information about it. I read somewhere that it's now possible to upload photos directly to twitter, without an external site, such as twitpic.
Does twitter provide an iOS API in the same manner that facebook provides their APIs?
I looked over ShareKit, but it has tons of features that I don't need and the workflow of uploading a photo is customized in my app. Worst case, I'll copy-paste some code from ShareKit, but I'm not sure it even has the ability to share a photo to twitter.
Twitter doesn't provide it's own photo sharing API. You have to upload your photos somewhere (on your own server, twitpic, etc.) and get the link and post the photo's link along with the tweet text.
I haven't used twitpic before but it looks like they have their own API that you can check out here.
If you're uploading them to your own server, you should use bit.ly's api to shorten the URL's of the photo links to provide more tweet text space. Info on bit.ly's API is here.
Related
I want to upload photos to my own instagram account programmatically from my Rails app. I've only been able to find posts from ~2013 that state this is against Instagram TOS. Is there any update or are photo uploads still disabled using the Instagram API?
Instagram API still doesn't allow upload from any third-party apps. This is their conscious decision and I don't think it will change any time soon.
As the title suggests I want to add Social media extensions into my iOS application, I have seen multiple tutorials on how to publish to an external source e.g. Facebook, Twitter, Instagram etc... which seems easy enough.
Now my question is it possible to do the reverse and instead retrieve information from these external factors? For example if I set the application to look directly at my Facebook profile when loaded and retrieve my Facebook status's.
I've heard of the concept of a Facebook Graph API which I plan on learning of the next couple of weeks. I'm looking for any resource materials or videos which I can use to learn from. I'm currently looking through Facebook's developers options but any additional information would be great.
You're going to want to use their official API. These links are a good starting point.
Facebook SDK for iOS
Twitter SDK for iOS
Instagram support for iOS
I used the Client-Side (Implicit) Authentication as described in http://instagram.com/developer/authentication/ and I receive the access_token. How can I use this to post a photo in the user's Instagram?
Thanks
Instagram does not allow posting photos from anywhere but their own mobile apps. Third party developers do not have access to this API. However, since you are on iOS you can use their iOS hooks to open Instagram to the share screen with a photo from your app as described on http://instagram.com/developer/iphone-hooks/ under the Document Interaction section.
I find it disturbing that its very easy to pick friends with friendPicker (FacebookSDK) and post pictures is extremely easy with IOS 6.0 social framework but to post the two combined seems very difficult.
I'm looking into the Facebook Open Graph API - https://developers.facebook.com/docs/opengraph/getting-started/
It seems very difficult in comparison since it requires application server etc. Its however the only solution I have found so far.
Is the use of the Open Graph API the way to go, to post a picture with tagged friends to facebook wall, or is there anything in the IOS Social Framework that can accomplish this?
With the Facebook Object API, you no longer need to set up a server in order to host Open Graph objects. You can directly create/add them to Facebook.
https://developers.facebook.com/docs/opengraph/using-object-api/
You can also use the native Share Dialog (in versions 3.5+ of the SDK) to share Open Graph stories with photos and user tagging embedded. See the Scrumptious app on how to create a story with photos and tags and publishing either via Open Graph directly, or using the native Share Dialog.
I've noticed that some recent tweets have media associated with them, for example photos from TwitPic or Flickr and videos from Youtube. You can see them on the Twitter website directly, so it's more than just a link. My thinking is that Twitter has formed these partnerships with these select suppliers of media, being Flickr, Twitpic and such.
I'm looking to automate some tweeting from an image gallery. Yet, I do not wish to upload these photos to another place. I want to host them myself and then embed/refer to them from a tweet. Yet, they should also be seen inline.
Is such a thing possible?
2017 edit: Looks like you can get a media_id via POST media/upload and then pass the id into POST statuses/update.
2014 edit: You can add media to tweets using POST statuses/update_with_media.
Original 2011 answer: No, you can't embed media into a tweet, nor can you upload photos to Twitter.
The "embedded" media you see is just Twitter scraping the URL for the photo or video, and showing it directly within Twitter, saving users from needing to click on the link to view the media. And Twitter only scrapes media for certain popular sites.
If you want Twitter.com users to see your images inline, you'll need to upload images to one of the popular image sites you mentioned, and have its URL in your tweet.
If you still want to drive traffic to your site, you could also include your gallery's URL within the same tweet.
But keep in mind that not everyone uses Twitter via Twitter.com; there are a plethora of Twitter clients available, and I doubt many feature inline media scraping.
I'd suggest just linking to your gallery/images, and not worry about uploading them elsewhere.
You can do all this and more. (and Twitter DOES allow you to upload images). Look at the documentation for Twitter cards.
https://dev.twitter.com/docs/cards