upload to imgur with url, via url - reddit

You can share / post to facebook, twitter, and reddit via url. The shareable content can also be embedded in the url as well.
Can the same be done for imgur? You can upload content to imgur by just linking to it with a url. example: how one would manually input a url to imgur

Related

How to get around Tumblr returning it's images embedded in a webpage to a 3rd party service

Ran into this issue and wanted to share my solution.
I am writing a script that gets images from a Tumblr blog and texts them to me. I was using a web scraper but switched to Tumblr's api, both of which got me the same images hosted on 64.media.tumblr.com. I ran into an issue when trying to use Twilio to send the images because Twilio wasn't getting an image from the url I provided, instead it got a webpage with the image embedded in it. Here is an example image - I find that sometimes it'll initially open as an image, but on refresh I get the webpage. I contemplated converting the image into a base 64 data url, but Twilio wouldn't accept that.
Tl;dr
Upload the image to a free image hosting site like Imgur (here's the API, you can just supply the source image url) then use the url from that site.
My Findings
Through some experimentation I found that I would get the image response when requesting with Axios and Postman, but get the webpage when requesting with Chrome and Puppeteer. This lead me to believe that Tumblr is attempting to only return the webpage to browsers, possibly a User Agent check. Whatever method Twilio is using to request images is triggering Tumblr to send the webpage back. If we can get the image hosted on another site that doesn't do embedding, we can solve our problem. Luckily Imgur exists and has a nice api we can use to upload anonymous images. Twilio happily accepted the Imgur image urls.

YouTube API for MP4 URL

I haven't found in the documentation, but wanted to see if anybody knew if the API provides ability to pull an accessible MP4 URL that I can embed in my mobile app. The only link I see if an embedded iframe to put on website. Assuming this does not exist as YouTube wants you to use their player, but just wanted to make sure I was not missing some API that I was unaware of.

How can I embed a link into a photo to be shared on Facebook, like Dropbox app does with FB photo share?

How can I embed a link (and message) into a photo being shared on Facebook by a user of an iOS app? Dropbox automatically does this when sharing a photo to Facebook from their app.
Pre-post screenshot in Dropbox App:
https://drive.google.com/file/d/0BxoMvrZdDAViY29YTm1kOFVjZTQ/view
Result as posted on Facebook:
https://drive.google.com/file/d/0BxoMvrZdDAViNE5sbWw3WmstZ1E/view
Thanks!
Set og:image and og:url meta tags on the page you want to share.
You can use the Facebook URL Linter / Debugger to verify/inspect the meta tags of your own page/URL or the DropBox URL from your example:
https://developers.facebook.com/tools/debug/

Request header for uploading the image using twitpic in blackberry?

I want to upload an image to the user's twitter account. For this, I need a URL which I will get in from of a json response.
I know the URL where the request should be sent i.e. 'http://api.twitpic.com/2/upload.json', but what should be the parameters for the request that I don't know.
Any Help?
which language you are using?
For now, check the examples here http://twittown.com/forums/showthread.php?t=768 and using TwitPic + OAuth to upload a photo + tweet to Twitter (.NET C#) - why no tweet?
They detailed every thing how to Twitpic including the OAuth

How can I EMBED rather than upload photos to Twitter?

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

Resources