week 10 Of GSoC working on Twitter image upload part and Heroku and ToolLab for a server for Bot.

#Issue Twitter Card image

As per my last conversation with my mentor @ArielGlenn on this twitter card images problem for Wikimedia common images so I got some reference from wiki commons IRC for this here is the account who use common images in that tweet https://twitter.com/aviationcommons

So ping that accounts for help I got answer I am sharing screenshot of that here

 

My Approaches

For posting the image on Twitter i refer this document (https://dev.twitter.com/rest/reference/post/media/upload) this help upload media images into Twitter. but the version 1 API I no longer is use and Version 1.1 have more parameters.

I am using thumbnail URL of Wikimedia common images Example: https://upload.wikimedia.org/wikipedia/commons/thumb/d/d3/Albert_Einstein_Head.jpg/220px-Albert_Einstein_Head.jpg

Example: Get the URL for a 220-pixel-wide thumbnail of File: Albert Einstein Head.jpg from Commons.

api.php?action=query&titles=File:Albert%20Einstein%20Head.jpg&prop=imageinfo&&iiprop=url&iiurlwidth=220

After lots of trial and error, I finally figured out the way and I write all the things on this link.