28 August, 2014

Instagram authentiation loop problem

If the code contains a

header(url-to-auth-instagram);

the file will try to go to the authentiation every time the file loops. Therefore the error message about the perpetual loop is correct. In pseudocode the solutions may be a condition, along these lines:

A solution:

if (!issset((get - code)) { header(url-to-auth-instagram) }
else --> step two etc.

No comments: