I would like to pull a tweet image or the tweet media - how would I go about this? I assume with the extra field mappings, just not sure how I would go about doing this.

Comments

Cristian.Andrei’s picture

StatusFileSize
new4.47 KB

I needed to pull in images from tweets and developed the functionality.

Here's the first iteration of it. It handles only images.

I manually created a new field called "field_image" of image type to the "Tweet" content type before I wrote the code . I think you need to do the same so that the tweet image has an actual place to be mapped to

Cristian.Andrei’s picture

Status: Active » Needs review

updated status

benjohnstone’s picture

Very nice, works a treat! thanks very much

Cristian.Andrei’s picture

StatusFileSize
new6.04 KB

here's a better patch that instantiates an image field so there's no manual operation to be made .

pere orga’s picture

Status: Needs review » Fixed

Thank you. For some reason this was missed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.