Tweet.js-Mod icon indicating copy to clipboard operation
Tweet.js-Mod copied to clipboard

Can't search for hash tag

Open thoronas opened this issue 11 years ago • 13 comments

It looks like the query operators no longer work, so while I can retrieve tweets from a username I can't show posts with a specific hash tag. When I try I get the following console error: tweet.js: Twitter Error: "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", Error Code #68

thoronas avatar Jun 20 '13 20:06 thoronas

The search url is not correct in the plugin, you need to change these values: Line 36: twitter_search_url: "api.twitter.com" and Line 194: url: "/1.1/search/tweets.json"

Then the correct url is being fetched. Then there's one more "bug": the page parameter is invalid, so I just uncommented it from the .js file.

ioulian avatar Jun 24 '13 09:06 ioulian

I made those changes and just get a twitter page that says "Sorry, that page doesn’t exist! Thanks for noticing—we're going to fix it up and have things back to normal soon."

Any ideas?

borelandn avatar Jun 24 '13 11:06 borelandn

for me commenting the page parameter ialong wioth the other adjustments wordek but now i only get 4 tweets back, when i requested 10 :(

koraysels avatar Jun 24 '13 11:06 koraysels

@borelandn Make sure the url's are correct. Here is my updated script: http://www.madedifferent.be/public/javascript/jquery.tweet.js. See those line numbers. Everythings works fine there

@koraysels Twitter API only returns recent tweets: https://dev.twitter.com/docs/using-search. You could use user_timeline if you only want to display tweets of 1 user. This returns all the tweets

ioulian avatar Jun 24 '13 16:06 ioulian

I have tried the changes mentioned above but I also get the message "Sorry, that page doesn’t exist!". Maybe the url on line 83 need also to be modified... @ioulian : I think you have the same error message, when you click on hash tags links on your home page...

michaelmarc avatar Jun 26 '13 09:06 michaelmarc

Oh, this is indeed the side effect of this change, I didn't notice that yet. I will look into it tomorrow, will try and find a better solution

ioulian avatar Jun 26 '13 16:06 ioulian

Thanks, I have tried all the changes mentioned without any success - if anybody has a working version maybe a url would be useful?

borelandn avatar Jun 27 '13 10:06 borelandn

this is where I implemented this : www.zaowang.be

the query used is "#zaowang OR zaowang OR @zaowang_info OR from:Zaowang_info"

But indeede if you click on a hashtag you get redirected to a page that does not exist anymore.. (due to API changes)

koraysels avatar Jun 27 '13 10:06 koraysels

You are having exactly the same problem as me - this is what you get when you click the sushi hashtag in the twitter feed on your homepage


From: koraysels [mailto:[email protected]] Sent: 27 June 2013 11:14 To: StanScates/Tweet.js-Mod Cc: borelandn Subject: Re: [Tweet.js-Mod] Can't search for hash tag (#19)

this is where I implemented this : www.zaowang.be

the query used is "#zaowang OR zaowang OR @zaowang_info OR from:Zaowang_info"

Reply to this email directly or view https://github.com/StanScates/Tweet.js-Mod/issues/19#issuecomment-20109241 it on GitHub. <https://github.com/notifications/beacon/ctGTFi4xIS9xHaLK8u4rKvcOt1L-4ovUnQG gWgdex7imEXs1_-YtYwUcUe-FxGX4.gif>

borelandn avatar Jun 27 '13 10:06 borelandn

Okay i changed line 83 to

' <a href="https://twitter.com/search?q=%23$1'+((s.username && s.username.length == 1 && !s.list) ? '&from='+s.username.join("%2BOR%2B") : '')+'" class="tweet_hashtag">#$1</a>'),

And now it is working, you can verify here www.zaowang.be

koraysels avatar Jun 27 '13 11:06 koraysels

Great that works - thank you very much, on another matter do you realise your website fails to load quite a lot of the time?

You get a partial page and a Google Chrome message about the website becoming unresponsive

This has happened 4 out of the 5 times I visited


From: koraysels [mailto:[email protected]] Sent: 27 June 2013 12:51 To: StanScates/Tweet.js-Mod Cc: borelandn Subject: Re: [Tweet.js-Mod] Can't search for hash tag (#19)

Okay i changed line 83 to

' <a href="https://twitter.com/search?q=%23$1'+((s.username && s.username.length == 1 && !s.list) ? '&from='+s.username.join("%2BOR%2B") : '')+'" class="tweet_hashtag">#$1'),

Reply to this email directly or view https://github.com/StanScates/Tweet.js-Mod/issues/19#issuecomment-20113155 it on GitHub. <https://github.com/notifications/beacon/ctGTFi4xIS9xHaLK8u4rKvcOt1L-4ovUnQG gWgdex7imEXs1_-YtYwUcUe-FxGX4.gif>

borelandn avatar Jun 27 '13 12:06 borelandn

wow that is a problem.. never noticed it though, maybe because i was ftp-ing and modifying the javascipts at the same time.. ? I will check it out thnx for noticing ;)

koraysels avatar Jun 27 '13 13:06 koraysels

You might want to try http://tools.pingdom.com http://tools.pingdom.com/ its quite useful

That will show you the load times for your site, it gives up after 60 seconds and shows a report - test a good few times - my first thought was external script but when I got the error, the external google jquery file you use loads quickly so its not that. - I have a feeling it may be down to the server (my guess is that it is a slow mysql server having problems)

I keep getting slower than 97% of the websites we have tested.


From: koraysels [mailto:[email protected]] Sent: 27 June 2013 14:58 To: StanScates/Tweet.js-Mod Cc: borelandn Subject: Re: [Tweet.js-Mod] Can't search for hash tag (#19)

wow that is a problem.. never noticed it though, maybe because i was ftp-ing and modifying the javascipts at the same time.. ? I will check it out thnx for noticing ;)

Reply to this email directly or view https://github.com/StanScates/Tweet.js-Mod/issues/19#issuecomment-20120789 it on GitHub. <https://github.com/notifications/beacon/ctGTFi4xIS9xHaLK8u4rKvcOt1L-4ovUnQG gWgdex7imEXs1_-YtYwUcUe-FxGX4.gif>

borelandn avatar Jun 27 '13 14:06 borelandn