Unable to post multiple images with a tweet


I am unable attach multiple media with a post. I have gone through this url https://dev.twitter.com/docs/api/multiple-media-extended-entities and implemented the same way . I am successful in uploading the media files as I got the media_ids and when i try to post those media ids none of the image get attached to the post, just my status get updated. I am using tmhOAuth Library. Can you guide me where I am wrong?