Revisions for "Image sharing on Twitter page"

Image sharing on Twitter page

I'm building a page on my web app where users can browse various pictures. I want users to be able to Tweet pictures from their own Twitter account. Also, I want them to be logged out of Twitter automatically after Tweeting each picture.

Please provide the HTML and Javascript for the following functionality:

  • When the user clicks a "Tweet this picture" link, they are prompted to log into Twitter and authorize the application. (They will never be logged in to begin with, because they'll get logged out after the Tweet is posted; see requirement 3, below).
  • Then, the user is promoted to post a structured Tweet with an image in it. For the image, use the image url contained in a hidden div (#image-1-url-container) on the page (doesn't matter what img you use).
  • Finally, after the user posts the Tweet, your code should log them out of Twitter automatically. If this is not possible, provide a detailed explanation. The reason for this is that the app is used on a public computer in a public space, so we want to make sure people don't stay logged in.

Aside from the Twitter App keys, your solution should function by itself in a blank HTML document.

Let me know in the comments if you have any questions.

Image sharing on Twitter page
I'm building a page on my web app where users can browse various pictures. I want users to be able to Tweet pictures from their own Twitter account. Also, I want them to be logged out of Twitter automatically after Tweeting each picture. Please provide the HTML and Javascript for the following functionality: * When the user clicks a "Tweet this picture" link, they are prompted to log into Twitter and authorize the application. (They will never be logged in to begin with, because they'll get logged out after the Tweet is posted; see requirement 3, below). * Then, the user is promoted to post a structured Tweet with an image in it. For the image, use the image url contained in a hidden div (`#image-1-url-container`) on the page (doesn't matter what img you use). * Finally, after the user posts the Tweet, your code should log them out of Twitter automatically. If this is not possible, provide a detailed explanation. The reason for this is that the app is used on a public computer in a public space, so we want to make sure people don't stay logged in. Aside from the Twitter App keys, your solution should function by itself in a blank HTML document. Let me know in the comments if you have any questions.
Image sharing on Twitter page
I'm building a page on my web app where users can browse various pictures. I want users to be able to Tweet pictures from their own Twitter account. Also, I want them to be logged out of Twitter automatically after Tweeting each picture. Please provide the HTML and Javascript for the following functionality: * When the user clicks a "Tweet this picture" link, they are prompted to log into Twitter and authorize the application. (They will never be logged in to begin with, because they'll get logged out after the Tweet is posted; see requirement 3, below). * Then, the user is promoted to post a structured Tweet with an image in it. For the image, use the image url contained in a hidden div (`#image-1-url-container`) on the page (doesn't matter what img you use). * Finally, after the user posts the Tweet, your code should log them out of Twitter automatically. If this is not possible, provide a detailed explanation. The reason for this is that the app is used on a public computer in a public space, so we want to make sure people don't stay logged in. Aside from the Twitter App keys, your solution should function by itself in a blank HTML document. Let me know in the comments if you have any questions.
Back to question