We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Tweet Button URL Probs

Development and Programming

clint_f's avatar
clint_f
70 posts
15 years ago
clint_f's avatar clint_f

Hi there, I wanted to get the Tweet button set up on my entry pages. I’ve been using the shortntweet addon but, I would like to also get the standard Tweet button working so I can decide if I want to use either/or. I’ve been having problems getting a valid url working.

The default url it spits out from http://twitter.com/about/resources/tweetbutton doesn’t work for me (http://twitter.com/share). So I tried to use:

<a href="http://{comment_url_title_auto_path}" class="twitter-share-button">Tweet</a>
[removed][removed]

But once the Tweet button is clicked it gives me the same message in the Twitter pop up window “URL required ‘url’ parameter does not contain a valid URL.”

I also tried to append the url with a query string as one of the examples at the bottom of this page has

http://dev.twitter.com/pages/tweet_button#Examples

but that also didn’t work for me. Maybe I constructed it wrong, I’m not sure what direction I need to take.

Any suggestions?

TIA

       
clint_f's avatar
clint_f
70 posts
15 years ago
clint_f's avatar clint_f

The [removed] bit in the code sample is the twitter script tag.

       
clint_f's avatar
clint_f
70 posts
15 years ago
clint_f's avatar clint_f

Alright, I guess the issue is just that I’m working locally and for some reason the twitter js doesn’t accept http://localhost:8888/ as a valid url. I tried the same tweet button on a production page and it works just fine.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.