Twitter Cards and Tweets send via the API



up until now I used Feedburner to post my RSS feed to my Twitter account. Twitter cards worked without problem. e.g.:

I disabled Feedburners feature and tweet now directly via the API. The problem is that Twitter Cards stopped working and I don’t know why?
e.g. this tweet should display Twitter photo card but it doesn’t:



The problem is solved. The problem was that the tweet was sent at the same time the page was published and it seems the Twitter bot didn’t get the data it needed for generating a card.

I solved this by first sending a page request to the newly published page via the PHP function file_get_contents($page_url); and after that sending the tweet via the api.