1


i m using Abraham twitteroauth class for updating the twitter status, but i stuck in minor problem, please help me. myquestion is :

if a user deny the access of application, then how to navigate the user back to our website ??

currently a user click the 'sign in with twitter' button.then it goes to twitter website

where its is being asked

An application would like to connect to your account Allow {application name }access?

and if user click on Deny button then it halts on this link where this is displayed

OK, you've denied {application name } access to interact with your account!

Feel free to find other applications and find out what people are talking about right now at Twitter.

so how do i sent user back to my website?? ask for code if required...

Thanks

xkeshav
  • 53,360
  • 44
  • 177
  • 245
  • Maybe you should just let the twitter website open in a new window or a new tab in the browser. That way the user never actually leaves your website. – Geoffrey Jan 24 '11 at 14:14
  • @Geoffrey but i m not want to do that...is there no way if we deny the application access from same page? – xkeshav Jan 25 '11 at 06:58
  • I do not know if it is possible to catch events on a website that is not under your control. Maybe it would work if you load the twitter website in a frame on your web page. maybe then you could catch some events of that twitter page. – Geoffrey Jan 25 '11 at 08:31

2 Answers2

1

If the users clicks "deny" you can't force them to redirect back to your site. There is no configuration that will do this. You will just have to hope the user clicks on your application name.

abraham
  • 46,583
  • 10
  • 100
  • 152
  • Thanks for reply, but i seen some of application where user deny the access then automatically go back to main site... how does that possible then?? – xkeshav Feb 05 '11 at 20:29
  • What application? I'll take a look at it and see what they are doing. I'm pretty sure to that what you are asking is not possible. – abraham Feb 05 '11 at 22:07
  • @abraham.. u r right...i checkd `twitpic` (i think this is largest application of twitter ) also does not navigate back... – xkeshav Feb 09 '11 at 07:30
0

Twitter does this automatically. I would make sure that everything on twitters side (specifically call back url) is set correctly. Once it is, and a user denies the request, it will send back to the request URL with a 'denied' $_GET key that you can use to key off of for a user message.

Christian South
  • 359
  • 2
  • 9
  • twitter not automatically redirecting, dats why i m asking here... tell me the code, where i have to put the condition that if user deny then go to this this url..? – xkeshav Feb 01 '11 at 07:30
  • where do i check/debug `$_GET` variable?? – xkeshav Feb 01 '11 at 10:11