开发者

How to sent user back to our website if he deny Twitter application to access?

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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜