Post to Twitter

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Post to Twitter

Post by david_navigator »

Help, I've looked and I've searched but I can't see what I need to do to get my version of Mantis 1.2.1 to post to my Twitter account. I'm sure it's simple and I that I simply can't see the woods for the trees, but if someone could tell me, preferably in simple terms, I'd be grateful.

David
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

somebody must know how to do this
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Post to Twitter

Post by atrol »

david_navigator wrote:Mantis 1.2.1 to post to my Twitter account.
IMO it's not clear what you expect
Please use Search before posting and read the Manual
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

I believe that when I resolve an issue in Mantis, I can automatically post this to my twitter account, so my customer's are aware that the issue has been dealt with.
If this is correct, then I would like to know how I configure Mantis to do this. I can't find any documentation that explains what I need to do.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Post to Twitter

Post by atrol »

There is no builtin function for this.
To get the functionality you could write a plugin or customize the existing functionality to sent email.
There are service providers where you get an email address and all incoming emails are sent to a twitter account.
Please use Search before posting and read the Manual
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

I don't understand, the manual mentions that I need curl for Twitter integration (but says nothing more on it - why mention it at all if there isn't some kind of integration) and this thread http://www.mantisbt.org/forums/viewtopi ... ter#p18536 seems to show that resolved issues are being posted to Twitter, but you say that there is no built in support for Twitter.
How are the MantisBT tweets shown on http://www.mantisbt.org/ generated ?
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Post to Twitter

Post by atrol »

You are right, there is some builtin functionality!

I was confused because I checked the twitter functionality that you mentioned from http://www.mantisbt.org
This is realized by a plugin, which is not able to provide the functionality you want.
You can use this plugin to implement an internal twitter funcionality or to read posts from twitter.
(At least the documentation says this, I never tried myself)

You are also right when saying "I'm sure it's simple"
Seems you have just to add the following two lines to file config_inc.php

Code: Select all

$g_twitter_username = 'yourTwitterAccount';
$g_twitter_password = 'yourTwitterPassword';
Please use Search before posting and read the Manual
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

Thanks, of course that had to be too simple !! I updated those to my twitter username and password, but marking a public issue on a public project as resolved, doesn't result in anything being posted to twitter. Unless anyone has any suggestions, I'll just have to do some playing 2morrow.
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

Frustrating, can't get it to work.
Is there some function I can use to help debug what's happening, maybe something to write to a log file or some such. Although I've got 20 years programming under my hat, I don't know php at all.
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

I'm beginning to think it doesn't work at all. I've just looked at the MantisBT account on Twitter and nothing has been posted to it since Nov, yet I can see loads of bugs have been resolved.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Post to Twitter

Post by atrol »

Seems that twitter does not longer support the authentification method used by MantisBT.
They decided to support OAuth.
http://dev.twitter.com/pages/oauth_faq
Please use Search before posting and read the Manual
david_navigator
Posts: 15
Joined: 16 May 2010, 09:34

Re: Post to Twitter

Post by david_navigator »

Added to BT with sponsorship if anyone fancies working on it.
atrol
Site Admin
Posts: 8555
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Post to Twitter

Post by atrol »

thanks,
for other users to track http://www.mantisbt.org/bugs/view.php?id=12865
Please use Search before posting and read the Manual
Post Reply