convertkit / instagram_basic_display Goto Github PK
View Code? Open in Web Editor NEWA client gem for the Instagram Basic Display API
License: Apache License 2.0
A client gem for the Instagram Basic Display API
License: Apache License 2.0
We are facing timeouts when fetching media. Basically, FB is not responding to us even after 30 seconds, and Heroku kills the thread as it's long-running.
client = InstagramBasicDisplay::Client.new(auth_token: user.instagram_token)
response = client.media_feed
Can I send a PR to add this functionality? If so, do you prefer timeout to be an environment variable or an optional param?
Hey there! Really sorry for any dumb question but Im a rookie on this area....
Im trying to set things up but have no idea where should I implement this part ot the code:
client = InstagramBasicDisplay::Client.new
user = User.first
long_token_request = client.long_lived_token(short_lived_token: user.instagram_token)
if long_token_request.success?
auth_token = token_request.payload.access_token
expires_in = token_request.payload.expires_in
user.update_instagram_token(token: token, expires_in: expires_in)
else
render json: long_token_request.error, status: 400
end
Should I code it on my def home inside PagesController?
Im coding a simple landing page where Im supposed to render my client's instagram feed....Thank you so much in advance!
Hi,
As Instagram changed their API Permissions lately, I am trying to implement the Instagram Basic Display API at one of my Ruby on Rails websites. I have already manually get my first long-lived access token and the next step is to get the media from instagram and find a way to automatically update the long-lived access token within the app. I found your article at ConvertKit really helpful and interesting. I installed your instagram_basic_display gem and tried to follow the guidelines here at github but obviously I face a problem on setting the enviroment variables. Could you please be more specific in which file exactly the enviroment variables should be saved and how it should look like?
Thank you in advance,
Elina
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.