Java version stores oauth token in your browser cookies, and when it is not present, redirects you back to authenticate.
The same behavior is implemented on phplib, but using session. In this case, doing an entire logout will solve your problem. Go to Google accounts page and grab the logout URL. Redirect your user to that page. In the meantime I will take a look if it is possible to add an callback and implement it on the lib. Robson Dantas 2010/8/26, jpadmarao jupudi <[email protected]>: > hi, > i got this code from below svn path: > orkut-os-client-php - Revision 4: /trunk > http://orkut-os-client-php.googlecode.com/svn/trunk/ > > I am able to use the code for authenticating and fetching user info etc. > The problem is with logout. > I'm loging the user out by clearing all the session by calling. > session_unset(); > session_destroy(); > > At this point the user is still logged into the orkut account. > > Now when the user re-logins to my application/site, he is taken to the > grant access page. But after clicking on grant button, I get > authorization error. > > On the fotoscrapper app (http://fotoscrapr.appspot.com/), -- java > example -- I think it is handled by forcing the user to re-login and > clearing out all the acess. I dont understand Java.. so cant read that > code. I think I'm missing something in doing this. > > > > Please help. > > > > On Thu, Aug 26, 2010 at 7:19 PM, Robson Dantas <[email protected]> wrote: >> >> Which php library are you using ? >> -Robson Dantas >> >> 2010/8/26 jpadmarao jupudi <[email protected]> >>> >>> hi >>> >>> i am using the oauth orkut php code for my site. >>> >>> but i want to logout code.. >>> >>> please provide urgent.......... >>> >>> thanks >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "OpenSocial Application Development" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/opensocial-api?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "OpenSocial Application Development" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/opensocial-api?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "OpenSocial Application Development" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/opensocial-api?hl=en. > > -- You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en.
