PHP Instagram api getting "code" and refreshing when authenticated -


hi'm trying figure out how authentication works. got instagram authenticated, , redirects me "callback" or "redirect_uri". when redirected works supposed to. ?code=54325114 supposed to.

but why when refresh, i'm not authenticated anymore? can't retrieve data. , when go index php (before authentication), redirected again , code changes, , works again, when refresh, doesn't again.

what correct way handle situation?

thanks, scenario makes sense.

i appear bit late party, anyway.

when authenticate user ig api, sent auth code. code valid once. when code, must request access token, can use many times. when code, should access token , cache (either session variable or cookie). then, if user reloads page should check if there access token cached , if there should not attempt regenerate it.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -