Twitter Cards and Tweets send via the API


#1

Hello,

up until now I used Feedburner to post my RSS feed to my Twitter account. Twitter cards worked without problem. e.g.: https://twitter.com/free_book_promo/status/297715976122806272

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: https://twitter.com/free_book_promo/status/297818717289603072

Why?


#2

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.