Facebook/Twitter profile picture API

Archived from the Transloadit support forum. Originally posted on May 31, 2012; details may be outdated, see our docs for current behavior. Original thread

Do you guys have any plans to implement a Facebook/Twitter profile picture API? I was looking at Cloudinary and their social network picture API is pretty nice. I would really like to see something like that in Transloadit.

Thanks,

Dave

Hey David,

sure, why not. :slight_smile:

What’s your use case and for which site?

This would be for our mobile app called Expeerience. Right now I am downloading a 50x50 image from Facebook and Twitter every time a users profile is viewed and I need a 64x64, but I don’t want to download the hi-res photo and crop/scale on the device. So, what I’d like to be able to do is call a URL on Transloadit (say http://api2.transloadit.com/live?fbid=123456789&crop=64x64 or http://api2.transloadit.com/live?twid=dknell&crop=64x64) and you would send me back the cropped image in the response. It seems like this function would have to be synchronous in order to ensure that you are getting the most up-to-date profile picture. I don’t mind caching the picture on my side, but I would need to make sure that we always have the users current profile picture.

Thoughts?

Tim,

You know what else would be awesome - if you had a robot that shared a processed photo/video on Facebook/Twitter!!!

I’m not sure of this is possible, but imagine this:

{
"steps":{
"encode":{
"use": ":original",
"robot": "/video/encode",
"preset": "iphone"
"width": 320,
"height": 240
},
"thumbs":{
"use": ":original",
"robot": "/video/thumbs",
"count": 4
},
"export":{
"use": ["encode", "thumbs"],
"robot": "/s3/store",
"bucket": "your-bucket",
"key": "your-key",
"secret": "your-secret"
},
"share":{
"appid": "827183528103211",
"use": "encode",
"robot": "/share/facebook",
"facebookAccessToken": "TheUsersAccessToken"
}
}

So something like our youtube/store robot, but just for facebook and/or twitter?

That would be awesome! I would also like to be able to get a Facebook/Twitter users profile pic cropped in real time.

BTW Tim, I just want to say that Transloadit is so freakin’ COOL!!! I LOVE IT! You make my life so much easier! I am going to recommend it to everyone.

Thanks,

Dave