Thanks for the module.
I would like to know how I can change the "..from Drupal" line sent to Twitter. I would like to change the link to something reflecting our site.

Thanks,
Jim

Comments

djeffers’s picture

So, according to Twitter, this is not allowed. I wanted to do the same thing myself, but they actually frown on that. They use the information for collecting statistics on what program is posting to Twitter, not personal sites. Trust me, I would have chosen a different name than Drupal too, but that is the way it goes.

More Info: http://twitter.com/help/request_source

-Dj

wdevn’s picture

Thanks!... Still a nice module!

jaydub’s picture

mcurry’s picture

*subscribe*

So, according to Twitter, this is not allowed. I wanted to do the same thing myself, but they actually frown on that. They use the information for collecting statistics on what program is posting to Twitter, not personal sites. Trust me, I would have chosen a different name than Drupal too, but that is the way it goes.

More Info: http://twitter.com/help/request_source

I don't see any guidelines regarding this requirement at that URI. Is there a new location for that information? Especially the bit about the frowning... :D

The twitter_set_status() function (in twitter.inc) has a default $source parameter of 'drupal', and the $source parameter doc comment says that Twitter will ignore all non-registered sources. But if you set the $source parameter to an empty (NULL) or any other string, Twitter seems to accept my test posts, appending "from web" so I'm not sure what you are allowed to get away with. (YMMV)

function twitter_set_status($screen_name, $password, $text, $source = NULL /* 'drupal' */) {

Interestingly, it seems to be possible to self-register your own application source strings, but I've not tried that (not sure it's appropriate in this case.)

How do I get “from [MyApp]” appended to updates sent from my API application?

Registered applications making use of OAuth will automatically be attributed when using the API. Anyone can register an application.

Applications that had registered pre-OAuth will continue to be attributed, but we encourage you to move to OAuth.

Link

AgentD’s picture

subscribe

funana’s picture

@http://drupal.org/user/60090 I registered my site as an App, but it still shows "from web" instead of my site's name. Maybe it takes some time...
But I am happier with "from web" than with "from drupal" ;-)

AgentD’s picture

@funana - I'd love to know what you placed in the fields in the registration form. What did you put as the callback url for example? The main domain or an internal url? I'd like to try this too, but don't want to mess up that registration form.

funana’s picture

Hi AgentD, honestly I left the field with the callback URL blank...

AgentD’s picture

Did you update the source in the module to something of yours or keep it blank?

This part:

<?php

function twitter_set_status($screen_name, $password, $text, $source = NULL /* 'drupal' */) {
?>
funana’s picture

I changed it to my site's name, but it gets displayed as "from web".

dddave’s picture

very interested / subscribing

rbl’s picture

I'm running some tests and will hopefully add something to this soon.

giorgio79’s picture

Twitter may frown upon people who dont display their CMS source, but I frown upon crackers sniffing out the type of CMS I use.

Thanks for the tip, removed Drupal from my tweets. Nothing against Drupal, more against crackers. The less they know about my system the better.

pribeh’s picture

subscribing.

gregarios’s picture

Subscribing.

Oyjord’s picture

tag

ck9’s picture

Can you tell us which file is responsible for generating this message please so I can hack it. Thanks

AgentD’s picture

see post #4 above.

twitter.inc

AgentD’s picture

I just tried signing up an application and it provided me with a Consumer Key, Consumer secret along with some URLs.

Is there a way to incorporate these two keys into this app?

eaton’s picture

Status: Active » Fixed

Those key values are part of Twitter's oAuth support. Twitter module 2.x only supports basic authentication: OAuth support will come in version 3.x, currently under development. Filling out an application registration form won't actually do anything -- the key values you're entering (or not entering) actually have to be present as part of an OAuth request for Twitter to respect the information you send, so it's ignoring it and just showing 'For web.' time won't change that, just converting to OAuth. ;-)

I'm adding a feature to version 2.6 though, that allows you to turn off the 'Drupal' attribution globally. There's no way to customize it on a per-site basis at present.

Coupon Code Swap’s picture

subscribing

Drupalized’s picture

subscribing

shunshifu’s picture

subscribing, this could be viral marketing Heaven

AgentD’s picture

Thanks for the update! Looking forward to v3 then!

dbeall’s picture

well,, i may be different. I like the from Drupal because more people will see the name and think about using the Drupal system. Crackers-, send them over to me and let me mess with their heads a while.. I will piss them off.

Status: Fixed » Closed (fixed)

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

wireyourworld’s picture

marking