ios - Instagram Logout API -


i'm using instagram api latest app , having problems logging out of instagram within app. has else had problems or know of way fix this?

thank you.

i've found simple workaround issue. it's not elegant, still may useful.

in instagram.m authorizewithsafary method located, instead of opening generated igappurl string in safari, send notification string webview handle instagram login page.

then watch current request in shouldstartloadwithrequest. request actual redirect uri ends error, when catch request (don't forget check app's redirect uri though), hide webview.

at same time you'll receive uri, application handling rest of authorization logic, if authorising safari. however, if app doesn't receive uri, can manually grab request , manually call delegate's handleopenurl method.

with such approach, logout logic work expected, since we're clearing our app's instagram-related cached data. however, don't think practice, since we're redirecting our app our app in case.

maybe transferring handleopenurl method's logic other notification-based methods better, didn't have time try that.

*this awesome answer provided man on git hub * apolotary answer


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -