In my rails application i am using oauth to get access to the user's profile data. The thing is when the instagram's authorization log-in page pops up, the user has to enter his log-in details, a cookie gets saved in my machine. Is there any way to DELETE this cookie(obviously not manually)? I am asking this because when the oauth page is called again, this cookie saved in my browser automatically signs in the user. This has become a nuisance for my project. I don't want this to happen, i want the same log-in page to be displayed again.
I'm assuming that you are wanting to log the user out of instagram as well as your application. In order to do that you can send their browser to https://instagram.com/accounts/logout/. I've seen it used as a image URL or loaded in a zero size iframe. I suspect the second is the better option.
That way it will required the instagram login again the second time, but won't require them to reauthorize your application.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With