This is comment page 4 for Creating a Custom jQuery Twitter Feed (API v1.1) »
Authenticating a Twitter Feed for OAuth API V1.1 – Timelines & streams »
Twitter feed authentication (API 1.1) for search »
Creating a Twitter Search & Analytics tool »
I followed the steps you gave, but on Part 2, Step 2(copy and paste js) where do I upload it after I copied and paste the javascript?
Hey!
Thanks for the great plugin!
I’m getting the Requested page not found. [404] error and i’m not sure why.
I’ve followed all the troubleshooting tips!
Thanks!
Btw, this error is only thrown on my website. I’ve gotten it to run using the simplistic demo I downloaded from your website…
Sorry sorry, I figured it out.. absolute path!! Thanks :))
Nice job! However the solution is complex.
Is there no easy way to populate the Twitter widget “shell” with tweets?
When you call the Twitter 1.1 API you get tweets as JSON data. I would like to just stuff that JSON data into the widget.
Are there really no standard methods provided by Twitter for doing this?!
Hi,
Love this Twiter feed work you have done… I am having problems with getting “error -” when it runs… I get the loading gif and then the pop-up error.. not sure what to check.. the get-tweets1.php file does grab the feed… site is http://www.bertbertbert.com
Any help is appreciated.
Thanks,
Steve
Hiya. Thanks for all your advice on here. I am new to using twitter and not very good with scripts etc. I am trying to insert a twitter feed into my school website so that I can tweet updates to it – so that it acts a bit like an instant news update. The built in twitter widget has the “Retweet” button which I don’t want as I don’t want hundreds of parents replying to the tweets – the idea is that it supplies them with updates about school etc. Is there anyway you could help me write a script to make this work please? Ideally this would be a small box that I can put on front page of website. Any help you can offer would be very much appreciated. Thanks
Thanks for your quick reply. I cant seem to see the show tweet actions line in the code that the twitter website gave me. Please could you advise.
Hi Tom! Thank you so much for this tutorial, this was the first time i’ve messed around with the twitter api and i found the tutorial really helpful and my twitter feed looks lovely!
However I keep getting this problem when i visit the page on Chrome, an error message pops up saying “error: Connection problem. Check file path and www vs non-www in getJSON request”. Is it an error on my behalf? If so where is the error located?
Any help is greatly appreciated!
Hold it! I managed to answer this myself by doing a thorough re-read of your tutorial! I was searching for the getJSON function in the wrong files which is why i couldn’t locate it. I had of course saved the twitterfeed.js files in a seperate js folder. and changed the url from “http://www.website.com/twitter/get-tweets.php” to just “../twitter/get-tweets.php”, seems to have worked for some reason! 🙂
Oh no! you managed to answer before i replied to it myself! You’re quick! Anyway, thanks again! Very much appreciated! 🙂
Thank you so much Kai!!! This solved my problem 😀
Hi Tom,
Thanks a lot for the code and tutorial. I had implemented on my client site and works well but got this error message occasionally “Connection problem. Check file path and www vs non-www in getJSON request”.
May i know what caused this and how to solve this issue?
Hold it! I found the solution from the post above. Thanks. It works by rmoving the alert(“error: ” + error);
I have getUserTweets.php getting my tweets In JSON format without issue.
I edited line 23 of twitterfeed.js accordingly:
$.getJSON(‘http://uniteordie.org/getUserTweets.php’
Jquery via tweets.html >>
Connection problem. Check file path and www vs non-www in getJSON request
I have read all the comments and tried the fixes , I’m not having success at correcting. Re-installed jquery. etc. Verified path to json.
Any ideas?
i am getting this error
Connection problem. Check file path and www vs non-www in getJSON request
Thanks a lot Tom…..
this is great.
Tom,
Great tutorial! I’ve got everything set up on my site but I’m having an issue where the tweets ‘twitch’ when you hover over them. Very strange! Any thoughts?
Thanks for the awesome tutorial. This is a new area for me so I appreciate the breakdowns. However, I am getting a strange error. jquery-1.8.2.min.js is throwing a 500 error. Any ideas?
Hi Ryan, can you resend the link? I got a 404 not found…
This works a treat but the formatting of the tweets is coming out odd and the links are not clickable. Is there a way to strip out characters that are appearing like:
John Lewis at home and Waitrose plan unveiled http://www.thisishampshire.net/news/10653751.John_Lewis_at_home_and_Waitrose_plan_unveiled/ â¦
And get the link to be clickable and not plain text?
Thanks
Hi There,
May of sent this a few times, but basically I have the twitter feed working from the twitter user I’ve set up, however all @tweets i.e. tweets to the user are not showing – is this even possible, if so, where am I going wrong?
Thanks
Stephen
Hi Tom,
I followed your instruction manual. The get-tweets1.php works fine. Downloaded also the latest version of jQeury. But nothing is changed.
It will not load the borders anything. The background is loading. Sometimes the seaching twitter is showing and sometimes it isnot.
The page is: http://leeuwenberg.info/twitter/heijstekevents/index.html
If you want my files please let me know and i will send them to you.
Hope you want te help me find out what i did wrong, it takes me almost 10 hours to figer it out.
Kind regards,
Patrick
Hi.
This is a nice script, but i am keep getting “error: Connection problem. Check file path and www vs non-www in getJSON request” error.
I tried thousands of combinations and still nothing positive.
When i run my twitterfeed.php file – it gives me result of tweets in JSON but the index page is pushing the error.
I cannot post the URL in public, is there any other way to send you the link?
Thanks.
Hi Tom,
Thanks for this it works great, I have used it on several projects. Especially the ones that needed to just be upgraded to 1.1. I do have a question however…
Say the twitter feed is in the footer loaded into every page, If you click any link off a page before the feed has loaded, I get a popup error “error: Connection problem. Check file path and www vs non-www in getJSON request”.
Have you experienced this before and if so is there a work around?
Cheers mate
Dan
Hello,
Great Job. Everything’s working in under 15 minutes!
One Question…
I’m noticing the t.co aren’t opening in a new window. Can you please let us know if there’s something we’re missing or maybe a quick fix?
Please and thank you 🙂
Hi,
Great tut! really helpful. I have everything working great. Was just wondering if you could point me in the right direction to updated new tweets via ajax. So it checks if there is any new tweets no currently displayed, if there is then load them in with ajax without a page refresh?? this would be awesome. thanks again
Hi Tom, Thanks so much for this tutorial. I really appreciate it.
Your code works on my machine but when my clients view the website, they cannot see the twitter feed. Would it be possible to check the code for me? Thanks!
Actually I think I figured it out, Tom.
I removed the “http://” and just used a local path “/twitter/gettweet.php”
Thanks for the great tutorial and code
Awesome tutorial, thanks very much. If it’s ok I’d like to ask a couple of questions.
1. For some reason I can’t change the true/false settings in the JavaScript file to stop displaying profile pictures and dates etc – do you know why this might be happening?
2. Would it be possible to display 2 different LinkedIn feeds on the same page? I have duplicated the php/javascript sides and entered the relevant API details into each (they still share the same twitteroath and style sheets – but entered a seperate field in CSS to load the scripts). They both start loading however only the first twitter feed loads whereas the second one fails. Any help would be appreciated.
Many Thanks
Drew
Hello Tom. Can you help with the styling element? The Json data’s rendering fine, but no styling seems possible, or placement – the data just ploughs in at the start of the document.
I’m developing SharePoint Hosted APP in that i need to use java script only. In previous version 1.0 i can get the data using client side scripting but now in the twitter search API version 1.1 they using some authentication.So that we need register in the twitter site and then get consumer key. using this we need to code in server side script and consume the data from the API.
Is it possible to get the data for twitter search API version 1.1 using Client Side Scripting?
Hi Tom,
Thanks for a great tutorial. I am using MAMP to have all my files in htdocs folder, I believe I have the path setup right according to the instructions but am not able to load display tweets from the get-tweets php file which authenticates fine. Is there a email I can send the files to ?
Any help would be much appreciated.
Thanks,
Keval
Hi. I noticed that Follow @’+tweetusername+’ is the user of a retweet or direct tweet IF those options are set to true. I think that’s not ideal in some cases and was wondering if ‘tweetusername’ could always be THE user of the feed we’re working with.
Thank you.
Hi. Just wondering if you knew about this. Please let me know… thanks! I mean, if there’s no simple way around it I want to know so I can think differently about it. Thanks.
Hey Tom,
Thank you so much for your tutorial. I have done the things step by step as the page said. However, it seems I cannot get the tweets. The php file works well and gets the feeds by json as well. But when I run the html file in local server-localhost. No error report and no tweets I can get, only one blank on page. Hope you can help me, thanks.
Thanks for your reply Tom. I have checked the JavaScript, it said “Uncaught TypeError: Cannot read property ‘length’ of null”. The error happened in line 28. The function(feeds) want to get the feeds.length.
And I have upload the script to a free web server, the url is :
http://unnugi.comxa.com/twitter/twitter.html
Hi Tom, great bunch of tutorials, nicely written code. Everything appeared to be going fine, following the tutorial (while testing on localhost), but once I tried displaying it on the page I’d get the screenname, the name, and the loading div, and nothing else, and no errors. I tried uploading it and the same problem occurs. If you could have a look I’d greatly appreciate it.
Thanks for your reply Tom. I don’t know Why I cannot have a reply before. SO please forgive me post some same comment here.
I have checked the JavaScript, it said “Uncaught TypeError: Cannot read property ‘length’ of null”. The error happened in line 28. The function(feeds) want to get the feeds.length.
And I have upload the script to a free web server, the url is :
[removed]
Greetings Tom:
I just came across your great Twitter feed scirpts. I have successfully implemented you gettweets1-1.php script
and it shows the JSON output.
However when I implement your scripts to show the html output. I get a Page Not Found 404 error
And when I view the page source, I see the JSON output. What file is the script looking for???
Thanks for all your help!
Jack
Hi Tom. Thank you very much for the tutorial. I am struggling with getting the Tweets to load. The loading circle just keeps spinning. I am using XAMPP and the authentication works fine because I do get the tweet information but attempting to generate the tweets into the feed is where I am struggling. If i could send you the files, would you be willing to take a look? Any insight would be great. Thank you again for the tutorial.
Michael
Thanks Tom,
I couldn’t have done it without your excellent tutorial and code!
Hi Tom,
Thanks so much for posting this. Even with extremely limited JavaScript skills, I was able to get it to work.
I do have one issue which confounds me. The code works in Opera, IE, Firefox and Safari. But in Chrome, I just have a blank box with no tweets. It seems to only get as far as the loading container.
I’m sure this is something idiotic on my part, but can’t seem to figure it out. Any help you can provide would be most appreciated.
Thanks again…
Hi,
I wanted to display the tweets at the bottom of the webpage as a ticker. So the tweets will move from left to write and one after the other.
I modified your CSS as below. I am able to see the animation, but the tweets are not displayed one after the other. Rather they are displayed one below the other and they all move from left to write at the same time.
Are there any properties from rest of the CSS which are causing the behavior.
CSS :
#twitter-feed {
position:fixed;
bottom:0;
left:0;
width:100%;
font-size:50px;
Background-color:#CD5C5C;
white-space: nowrap;
}
#twitter-feed div {
display: inline;
position:relative;
color:yellow;
animation:mymove 50s infinite linear;
-webkit-animation:mymove 50s infinite linear;
}
@keyframes mymove {
from {
left:0px;
}
to {
left:100%;
}
}
@-webkit-keyframes mymove
/*Safari and Chrome*/
{
from {
left:0px;
}
to {
left:100%;
}
}
Awesome tutorial! This was a life saver!
I have one question though and I have a feeling that there is nothing I can do about it, I’m just double checking.
The feed only shows tweets from within the past two weeks or so. I used this on a website for a friend and he doesn’t update it too frequently at the moment, because it’s his off season. Is there a way to also display older tweets? I think this is a Twitter thing, because even the json file only has the more recent ones.
Thanks!
Hi Tom and congratulations for your great job.
I can’t do work the jQuery Twitter Feed, i follow your howto but don’t work.
I working with wordpress, I explain a little bit:
1º I put the links in head of header.php before
2º I put the in html of the page
3º I do the file twitterfeed.js and i put it in the folder js/twitterfeed.js
4º I do the file twitter-styles.css and put it in the folder: css/twitter-styles.css
5º I download the twitteroauth and upload to my server
6º I do the file get-tweets1.1.php and replace the 4 keys with the info of my twitter app
I’m very lost I tried everything, what work wrong?
The page don¡t show nothing.
Thanks very much
Ups!!! the html code don’t show 🙁
Hi tom, thanks for this, got everything working but ever time I load the page I get an error message alert box that I have to suppress, can’t work out the problem console log does say 403 (Forbidden) for the tweets php file, path I’m using is with http www could i send you the link to have a quick look at?
many thanks