I use this twitter api library , and so far everything is fine. My problem (well, actually, this is not a problem for the user) is that every time you want to log in to Twitter, you need to open a popup.
Right now the flow is as follows:
- The user clicks on the twitter logo on my page.
- Javascript popup includes Oauth twitter. If you are logged into everything that is said, it is login and cancellation. If you do not have login fields.
- If all is well, this refers to the return URL that I provide. doing a bunch of things and then ..
- I call window.opener and pass the authenticated information, and from there I close the window.
It was surprisingly easy to implement and works great. I am wondering if the twiiter login process can be a bit more like facebooks, which would be like that.
- The user clicks on the twitter logo on my page.
- If the user logged in and authorized the application, a pop-up window popped up instantly and returned the user data to my page.
I understand that I am using the php library for twitter and the facebook stream is from the javascript side, but I am wondering if I can detect using php if the user has already allowed the application and has been signed up, for they bypass the extra click / cancel click.
source share