ConvertKit / instagram_basic_display

A client gem for the Instagram Basic Display API
Apache License 2.0
25 stars 10 forks source link

Cannot setup enviroment variables for instagram_basic_display #6

Closed elinachar closed 4 years ago

elinachar commented 4 years ago

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

raquelxmoss commented 4 years ago

Hi Elina,

You can set environment variables in Ruby apps in several ways:

If you would prefer another way to set the variables (perhaps just passed into the configuration), you are welcome to create a PR to do that!

elinachar commented 4 years ago

Hi Raquel,

Thank you very much for your prompt response. It really helped me to solve the problem.

Kind regards, Elina

On Sun, Jul 26, 2020 at 1:56 PM Raquel Moss notifications@github.com wrote:

Closed #6 https://github.com/ConvertKit/instagram_basic_display/issues/6 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ConvertKit/instagram_basic_display/issues/6#event-3586977958, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZHLR5UH56FJCZAWIILWULR5QDWJANCNFSM4PH5KYQQ .