Open deryckoe opened 9 years ago
Hi! Thanks for your kind words. I just updated the Example-Project Gist for you, in order to work with sessions (the user-token will be stored in the session, so that the user stays logged in).
I'll update the Example-Project in the upcoming V3 release.
Cheers, Christian
Hi Christian,
Thanks for your help. I solve that with a solution similar like you. I admit, take a while to think on store the token (I never work before with Instagram API) but I made it saving the token, just like you. The code works fine thanks you very much and Happy Holidays.
Cheers, Deryck.
Hello
how can i used the code for multi days like take one "getOAuthToken" and used it for unlimited time ??
thanx
@Q8HMA Store the token in a database and use it whenever. But don't assume it'll always be active.
@robertark , is using cookies to store access token a good way ? How can we know when that token is inactive? Thanks
@robertark , sorry got it ...“error_type=OAuthAccessTokenError” is set in response if access token is inactive
Cookies are stored on the client... might as well have them go through the OAuth process again (it's fast anyways). You store the access token on the server if you ever want to access the users info again - such as via a CRON job.
Hello,
I make the Class work, but I have to manually login every time I load the website. That it´s not a very practical solution. I would like to know if there´s and implemented way of auto login with every page load. The final users, does not need to manually load, only need to see the Instagram media feed.
I would like to thanks for your great work, of course. That´s my only issue, the Class works perfect.
Any suggestion or example? Thanks.