Auto Post to Twitter

(Bcguy) #1

We have a “news” forum in our site which is great because it allows users and ourselves to quickly post interesting news for discussion. Frequently these get “oneboxed” so the layout is nice. - Its actually a quick and easy alternative to blog postings on our site.

It would be great if we could automatically hook up Discourse with our Twitter accounts so that the title and a shortened link automatically got posted to twitter - to help drive conversations on our forum.

This would only be for news (the initial post) posted to this forum Category, by a Moderator.

This would have broad appeal and help all forums because it would help drive traffic to people’s Discourse Forums - which is one of the key challenges that most Discourse forums will have.

(Michael Downey) #2

We use for this, pointing it at the site’s RSS feed. Works pretty easily.

(Bcguy) #3

Seems like it might be a reasonable work-around for a while. I’m wondering if it posts just the first post in a discussion, or all of them. I don’t want my twitter account filled with discussions - just the first news item.

(Michael Downey) #4

It only posts new topics, and can add text before and after the topic title. If you look at OpenMRS (@OpenMRS) | Twitter you’ll see some examples. I’d recommend testing with a non-public Twitter account first to make sure it’s working as you expect.

(Bcguy) #5

Can you point me towards your forum and twitter feed so I can see how you have it working at (PM me if you don’t want it public)?

I’m wondering if you can do this with just one category in our Discourse forum.

(Adam Capriola) #6

IFTTT is another (more flexible) option besides twitterfeed:

(Dave Evans) #7

We’ve proved to ourselves manually that auto-tweeting new topics is a great driver for new traffic to the forum.

However, getting this working technically without me coding something doesn’t seem possible. Does anyone have a good method of getting this working?

I’ve tried Twitterfeed hooked up the the latest.rss feed but the tweet it generates is not pretty and it’s not really usable.

Would love a pointer to a plugin that can be setup to auto-tweet new topics if such a thing exists? Or a functional alternative that can access all new topics and format the tweets.

Without access to webhooks I guess the only programmatical solution is to generate a new user and use the API to poll /new.json and prevent duplicate posting myself?

(Jeff Atwood) #8

Can you be more specific? The RSS feed should work for this

(Dave Evans) #9

It works but the tweet that comes out looks like this:

Though looking again at twitterfeed I could probably clean that up by just using the title.

Main issues is that I’d like only new topics, but there doesn’t seem to be a public feed for new topics. Can I get a new.rss feed using the API key?

(Bcguy) #10

Yes - this is exactly the case. This is what I would like too.

(Michael Downey) #11

This is what you want to do. Works great for us.

(Dave Evans) #12

Yep, on re-examining twitterfeed. If you set it to follow and only show the title. It seems like this will do the job.

I’m going to set it running for a while and see how it goes.

(Dan Dascalescu) #13

Twitterfeed isn’t very reliable. I’ve repeatedly tried to add a account, and kept getting errors. After giving up on that, I tried to just add the latest.rss of my forum. After ~30 seconds, I got “something went wrong” (probably the backend timed out).

Tried again a few minutes later; no luck.