I want to acheive the following:
A user on our website clicks on a Twitter link and then Twitter opens with the user already logged in. I started out trying to get it to open in an iFrame but abandoned that pretty qucikly. I’m not even sure if it is possible but I need to be 100% certain.
Approaches taken so far
I have used the oAuth librarys from Abraham (https://github.com/abraham/twitteroauth) and managed to get that working with no problem. I have all the tokens etc. and can post to their account. I was expecting the act of authenticating them to log them into Twitter but I assume this isn’t the case because the Twitter website isn’t setting the cookie?
I have tried to pass the credentials using cURL but nothing is returned. My basic cURL implementation is OK, I can read in the Twitter homepage (not logged in) and display it on our page
I have had many other suggestions including:
- Embedding a browser into a Java Applet and then embed that (not sure how to pass the variables…)
The question is this, which route would you go down or do you have any better ideas?