Jump to content

Featured Replies

Posted

I am doing some tests on my live site (V4) with Blogs and the RSS Import feature. I'd like to use RSS feeds of Twitter channels to automatically post any tweets into my Blogs app. But I'm having some trouble with it. I'm using a service called rss.app to generate an RSS feed for select Twitter channels, and I'm using those xml files as a basis for the RSS Import. But images and video that are attached to tweets don't display on the Blog entries that are generated on Invision Community. It is also not automatically adding new Blog entries on Invision Community when the feed updates.

Steps:

> Create a new Blog (private, not public, for testing purposes)
> Manage Blog > Atom/RSS Import options
> Check 'Enable RSS Import', set URL to "https://rss.app/feeds/8X3mB2dbhydz7V8r.xml" (the Twitter RSS generated from rss.app)
> Hit Save; initial blog entries are generated
> Click through to an entry that should have an image attached to the original tweet; doesn't display.

I've talked to support on rss.app about this and they say the image meta is fine on their end (rss.app also has an on-platform feed reader which does display a tweet's associated images), and they suggest it is some issue on the Invision Community side. Videos, according to rss.app, won't display anyway because of how Twitter's structures its website data, but images should be working fine.

Any ideas what might be causing the issue (both the lack of auto-posting Blog entries and the lack of image output)?

  • Community Expert

Thank you for bringing this issue to our attention! I can confirm this should be further reviewed and I have logged an internal bug report for our development team to investigate and address as necessary, in a future maintenance release.

  • Community Expert

The problem is caused by the media tag:

<media:content medium="image" url="https://pbs.twimg.com/media/GkWmYMeacAADdLR.jpg"/>

The XML parser strips any tag that includes a colon in its name. The above won't work, but this code below would for example:

<media medium="image" url="https://pbs.twimg.com/media/GkWmYMeacAADdLR.jpg"/>

I know because a client had the same issue on v4 and I made a modification for them to work around that. Without hooks, I can't update the app as-is for v5, though. I'd need to create a custom controller that retrieves the XML file, replaces the tags with colons, and then passes it over to the RSS Import class.

In any case, the image inside the <media> element still won't be imported because the RSS Import code does NOT check that specific tag. The blog import only imports data from the <description> tag. Part of the modification I made was also to convert that element into an enclosure and then import it as a blog entry photo.

  • Author

Thanks for the assistance @Jim M and for the added context Terabyte. Maybe another thing to look into, if possible, is to also use the tweet's media tag as the blog entry's cover photo, too. But that's more of a suggestion than a bug I suppose. But figured I'd mention it, while we were talking about this.

Recently Browsing 0

  • No registered users viewing this page.