Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
twitter.com has switched a few things around with its introduction of "new twitter", from twitter.com/username
to twitter.com/#!/username
. This causes breakage of the twitter service link; when clicked it goes to twitter.com but does not fill in the desired info in the tweet box but rather fills the url with gobbeldygook from the service links module (the currently used twitter.com/status?=
is depreciated).
working on a patch, will post soon.
Comment | File | Size | Author |
---|---|---|---|
#6 | new_twitter-1161974-6.patch | 620 bytes | brunodbo |
#1 | twitter-fix-1161974.patch | 612 bytes | skjalf |
Comments
Comment #1
skjalf CreditAttribution: skjalf commentedUploading patch that updates Twitter service links to be compatible with New Twitter.
Comment #2
skjalf CreditAttribution: skjalf commentedComment #3
antigonah CreditAttribution: antigonah commentedI do not know why, but dont´n display the source url, only title text. Someone the same thing happens?
Comment #4
kurkuma CreditAttribution: kurkuma commentedThe actual URL built by the module for twitter (twitter.com/home/?share...) doesn't work in the new twitter, it seems it is deprecated. But the url of the form twitter.com/?share... works for both of them.
It could be a temporary solution, as twitter is changing and the old style url will eventually stop working.
Until the module is fixed I have sorted this out adding a "good twitter" service links hook in my module with the following code:
Comment #5
thedane CreditAttribution: thedane commentedUnfortunately, the patch in comment #1 doesn't seem to work for me, and neither is the hook in comment #4.
I also tried
but that doesn't seem to work either.
Anybody got any other thoughts on this?
Comment #6
brunodboLet's try this:
Attached patch changes Twitter links to
Comment #7
brunodboBumping to critical, as Twitter sharing is currently broken.
Comment #8
Liliplanet CreditAttribution: Liliplanet commentedsubscribe thx!
Comment #9
kurkuma CreditAttribution: kurkuma commentedWe tried the url in #4 in both twitter versions (old and new) and it worked. The hook is fine and we replaced the Twitter link of the module with the good_twitter defined in our module. Beware of the icon to use, it must have the same name that the servide id, so we cloned twitter.png to good_twitter.png.
As I said it seems like a temporary solution but so far is the one that works in all cases for us.
Comment #10
CarlHinton CreditAttribution: CarlHinton commentedThis worked for me:
#4 does not provide the url to twitter
Comment #11
gsquirrelpatch in #6 seems to work for me
Comment #12
Liliplanet CreditAttribution: Liliplanet commentedtried #6 and #10 .. unfortunately neither works for me
Comment #13
TheCrow CreditAttribution: TheCrow commentedI just tried the latest dev and the simple twitter service (not the widget) work for me, someone can confirm that tweeting some post on my personal website?
Comment #14
anzolnet CreditAttribution: anzolnet commentedAfter patching, disable and enable again the Twitter widget. This helped me.
Comment #15
kurkuma CreditAttribution: kurkuma commentedThis could be a stupid suggestion but when trying to post to twitter do it with both configurations (new and old twitter). They can be switched in your twitter account.
Comment #16
joostvdl CreditAttribution: joostvdl commentedPatch #6 is working
Comment #17
TheCrow CreditAttribution: TheCrow commentedcommited the #1 which come from the standard twitter documentation.
Comment #19
Chad_Dupuis CreditAttribution: Chad_Dupuis commentedI hate to open this up again, but this does not appear to be fixed (or at least appears to be broken again). As far as I know all was working well with the latest service links and shorten urls, in the last week I've received complaints from our users at http://www.yinyanghouse.com/ that it only sending the title again with no link to the content. I've tried it myself and this appears to be the case.
Any ideas? Is this working for everyone else?
Comment #20
TheCrow CreditAttribution: TheCrow commentedstill working well...
Comment #21
runzipel CreditAttribution: runzipel commentedmaybe you should deactivate "Use "www." instead of "http://"" in Shorten module ( admin/settings/shorten/general).
Twitter does not recognize your url without "http://"