Integrate Instagram feed into Rails application - ruby-on-rails

Q: How do I allow my users to display their instagram feed on my site?
I have a Rails 5 application that has been relying on an unofficial, and undocumented, API from Instagram (Basically appending /?__1 after the URL). I want to allow all my users to input their profile URL and then display their Instagram feed on their public profiles.
I have look at https://www.instagram.com/developer/embedding/ but it says nothing about embedding actual feeds.
What if I let all my users integrate with Instagram using oauth and then query their feed with a specific token?
Would be very interested in hearing what others do. Thanks.

Related

How do I redirect an HTTP request from my website to a social media API in Ruby on Rails?

If someone on my website sent a POST request with some data, how would I redirect that to another API in Ruby on Rails? I am trying to make a rails website where a user on my website can input some data like a title, body text, some media and send that to the APIs of social media platforms like Facebook, Instagram, Pinterest, YouTube, TikTok, LinkedIn, and Twitter. So the user can connect their accounts and create a post or a video on that social media platform from my website. Is that possible, and if so, can someone help me with how I do that entire thing from my website? Thanks.
I didn't try a lot of things since I don't exactly know what to do.

Using Instagram Basic Display API to get user's metadata

I am currently working on an iOS-App where Instagram users can fetch their data, such as profile information and images and will be able to post. There are similar apps like Flume (https://flumeapp.com/) which are capable of accessing those features. I already managed to get the access token and fetch the basic user information.
As the Instagram Legacy API will be shut down soon, I am wondering how to fetch detailed user information, as the Basic Display API only lists fields for account type, id, username and media count (https://developers.facebook.com/docs/instagram-basic-display-api/reference/user#fields).
In both the Basic Display API as well as the Graph API it says that creating media is not supported.
Can anyone tell me how other apps (like Flume) are able to perform those actions? Are they perhaps still using the Instagram Legacy API?
Thanks!

How do I access the Twitter API from my website to display my latest tweet?

Background:
I'm using the react-boilerplate to build a personal website, and I would like to display my latest tweet in the footer. I do not want the embedded card, only the tweet itself (similar to the Momentum extension).
This appears to be what I am looking for:
https://dev.twitter.com/rest/reference/get/statuses/user_timeline
Question:
How is my website supposed to authenticate with the Twitter API, without including the authentication data in the website's codebase?
Should I have an app in the middle that processes the requests, or is it possible for my website to directly retrieve my latest tweet each time a user accesses my page?
Thanks

Getting public photos from Instagram account without login

I want to get all the photos or public photos from my Instagram account, without logging in to it.
Is there an API provided by Instagram to make this happen?
Unfortunately, no. The Instagram API requires Authentication to retrieve a certain accounts pictures. Check out the API Console on Instagram's developer website to see which methods require authentication and which of them don't. I know you can retrieve tags, popular pictures, and search users. Good luck!

Twitter share photo feature for iOS

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.

Resources