This is comment page 5 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 »
Hey Jason,
did you ever figure out what the issue was? I’m having the same problem. Thanks so much
Ok, now this is the error I am getting… GET http:// url /tweets.php 404 (Not Found)
Hi Tom! thank you so much for the wonderful tutorial!
I am getting Uncaught ReferenceError: exception is not defined on twitterfeed.js line 115. How do I fix this?
Hi Tom
In the last few days this has stopped working, the feed is pulled correctly but as far as i can tell, the following if statement is never true and therefore the feedHTML variable is not concatenated with the correct data
if (((showretweets == true) || ((isaretweet == false) && (showretweets == false))) && ((showdirecttweets == true) || ((showdirecttweets == false) && (isdirect == false)))) {
Thank you very much for this tutorial!
I just have one small issue.
I can not seem to get the json data to go away. It shows up above my header and the widget shows where it should.
I tried to comment out the line that echos the json data, but that breaks the widget. Thanks for your help.
Hi Tom, thanks for the great tutorial. I think I have followed all your steps, but am having trouble in seeing any tweets in my feed. I get this error message:
error: Connection problem. Check file path and www vs non-www in getJSON request
I’ve tried some of the suggestions that you gave to others with the similar problem, but none of the solutions seem to work. Here is a link to my site:
I’d really appreciate any help and advice on how to get this working.
Thanks very much!
YOU ARE THE BEST
THANKS SO MUCH ^_^
A beautiful script work very well. I had a question:
I wanted a sort of loop so if the last message was that when he immediately starts again but I could not find it in these descriptions, or I do not look good.
Sincerely,
Bart
thanks this is an awesome stuff, i try to implement it in joomla but the noconflict function in j 2.5 seems not function with this can you help me?
Hi,
The tutorial is working perfectly, except that the JSON is still displaying on my page, on top of the styled timeline !
It might be because there is still the “echo json_encode($tweets)” in get-tweets.php, but how to avoid that to still get de JS file working ?
Youhou !! i got it ! i was including get-tweets.php twice !
Great job man 🙂
Hi, can someone help me?
* I’d like that the images can be visible togheter text, and not only the link.
Is it possible?
Hi Tom, Thanks for this great tutorial
Twitter feed is coming ok but there is a problem
I want to add twitter follow button at header area of twitter feed
I added twitter follow button through javascript
Before twitter feed loads, follow button displays
but as the tweets display, follow button disappears
Can you please help
Hi Tom
Is it possible to show tweets of a particular user account filtered by one or more hashtags ?
$tweets = $connection->get(“https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=”.$twitteruser.”&q=#batley”.”&count=”.$notweets);
I have tried to add a particular hashtag “#batley”
But it only displays the tweets of that user account without any filteration by that hastag
Can you help ?
Hi Tom, first of all thanks for this. I have a query regarding the live twitter feed. I’d like to know if there is a function call, so that it updates the twitter automatically within the page on a certain time without reloading the page. Many thanks.
Hi Tom!!! Great tutorial…
1st of all sorry for my english… xDD im doing my best.
About this twitter feeder… its really awesome.. it works on my local but when a put it online dont load anything….. keeps loading. My website is antonellasevents.com.
My host provider is godaddy.. Do i need to configure something in goddady to get feeder working out?
Thanks for your help!!! 🙂
Hello Tom,
Firstly, thank you for the code! Unfortunately, I have a problem showing tweets when the path of the website is one level down. The twitter feed is at the footer of the page, so it should be there on alle subpages.
I expiremented with the “$.getJSON(‘get-tweets.php’,” path at line 20 of twitterfeed.js. For example by adding the absolute adress, with or without www. But that didn’t work out
Is there a way to fix this.
Thank you sooo much! I searched quite a while to figure out exactly this and this post seems heaven-sent. Just a quick question, how would I display my number of followers if I wanted to? The shortcode in the twitter api is “data-show-count” … but maybe I am not sure where I can find these attributes. Let me know at your convenience, and thanks so much again 🙂
This is a great plugin, thanks!
Can you tell me what i need to use to get the media url from the feed? I’ve tried similar things to the below with no luck yet…
var imageurl = feeds[i].media_url_https;
or
var imageurl = feeds[i].media_url;
Hey Tom, love the script but for some reason, my get-tweets is loading perfectly, but when i got to view it on the main site, it doesnt show!
check it out:
http://www.kristhecaptain.com/test/test2/register.php
any ideas?
For some reason the tweets on my client’s website are now blank (this did work previously) .
Any clues?
Hi
I’m getting the “error: Connection problem. Check file path and www vs non-www in getJSON request” issue recently. It didn’t do this when I first installed the script which was working fine.
It tends to happen when I click a menu item before full load has completed.
Very frustrating.
Can you tell me how to resolve it, please.
Great script solution by the way.
Hey Tom,
Great work on this and I have a slight issue with it using Internet Explorer only.
I get this error code only in IE
Connection problem. Check file path and www vs non-www in getJSON request
I have tried absolute paths, urls and just the directorie names and nothing.
I type in example.com/tweets.php and it shows the same in IE, Firefox and Chrome only problem is when I go to display using javascript.
any ideas or do you think it could be a browser issue on my end
Hey, Thanks for the great tutorial. I have an issue that I could not solve. When I run get-twitter-search.php I could see the tweets in a format like this: “RT @aaroncarter: #throwbackthursday n#internationaldayofhappiness http://t.co/nKTwqclPvB“,”source”:”web”,”truncated”:false,”in_reply_to_status_id”:null,”in_reply_to_status_id_str”” but nothing shows up on my index.html. Do you have any suggestions? Thanks in advance.
Thanks a lot for these great guides and ready to use code Tom, Bless you!
I was wondering if you could help me with auto-loading new tweets every 20 seconds or so?
Everything is setup exactly as u have guided and working. Do i need to set an interval function for jquery? Would really appreciate it!
Thanks again and have a gr8 day!
What would I need to add/change to get the tweet pics to expand automatically instead of displaying a hyperlink?
Also, I want to change it from displaying a timeline to displaying search results. Any help would be appreciated. Thanks.
Hi Tom,
Quick question. I’ve been able to style the Twitter feed fine and get it to work how I want it. However, I am finding that the “source” link from the json output is showing up in different sections of my site.
So there are random links to “source”:”Twitter for iPhone” showing up when I hover over seemingly random sections of my site.
I understand that the source is the utility used to post the tweet, but I just don’t understand how to get this to go away so that no links actually show on my site. If you go to [removed] and hover over the footer or email newsletter signup you will see what I mean.
Any advice for how to solve this? I really appreciate the help!!!
hi Tom,
your articles are very helping.. I’m glad that I came across this page.
here’s my problem..
I actually need to fetch around 150-200 user tweets in a single request to Twitter.
is it possible to do so? if so, how can I?
Hi, Great code and working well for me on a few sites – but noticed on one site I am getting an error in Chrome which I can see in the Inspect Element Console:
XMLHttpRequest cannot load [removed]. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://example.com’ is therefore not allowed access.
Any ideas why and what the fix is?
Hi Silan, yeah you JSON request is pointing to the PHP file on my site rather than the twitter PHP file generated on your site (around line 22 in the JavaScript).
I am still having issues with the twitter feed not showing on my end now. It was at least showing me the actual name but then now it not even doing that much for me.
Hi Tom,
Thanks for the post, I’ve got the feed up and running, but have a question: Is there an easy way to pull/display tweets from multiple users using this setup? For example, a company that wants to display all employee tweets.
great work.
how to increase or display more tweets instead of one.
Like i want to show 3 tweets at a time and scroll on..
i checked the js but couldnt workout
Hi Tom,
I’m trying to organize the tweets in a different manner, specifically to fit into my current site structure. I want to organize the tweets in ul li format but the js reformats the structure when it gets to the twitter text, specifically. Any ideas as to how I can restructure to fit my needs?
This is great. How can I change it from a feed of user tweets to a search term – would love to display a hashtag via same method.
Hi Tom, I have the following error: ‘Connection problem. Check file path and www vs non-www in getJSON request’;
But change using absolute paths to try, your same web addresses:
”
” …
What can it be?. The only relative path is my html that calls the js jajaja…Help me! thanks!…
Hi Tom, Thanks for this beautiful js script.. It helps me allot Thanks :). One thing I wanna share with you that I have updated this script as jQuery plugin and I wanna share with you my updated code with great pleasure. you and other needy people can find this code on my Github page because here is no way to send you… so let me know if you allow me to update your code and distribute among all the needy people.. it would be great pleasure to hear you.. Thanks once again.. 😀 Here is path/link https://github.com/neerajsinghsonu/TwitterHashTagGallery
Hi Tom
Sorry to reply to an old thread, but I was wondering if there’s a way to get the Tweet media to display inline in the feed rather than as a link? I know this isn’t practical display-wise, but a client wants to show pictures on the page.
Thanks for the excellent tutorial by the way.
Oops didn’t see the subsequent comment pages – I guess it’s not such an old thread! 🙂
Hi,
My question focuses solely on the following code within the twitter-fade.js file.
– var refreshinterval = 60000; // Time to autorefresh tweets in ms. 60000ms = 1 min.
-var refreshtimer;
Regardless of the time I choose to set as the autorefresh rate the tweets never seem to actually auto refresh and pick up new tweets. Everything else I seem to have gotten to work correctly. Is there anything I should be modifying to the above variables?
Thanks in advance.
Hey Tom, will this work in a ASP.Net site or CMS like DotNetNuke with the latest twitter api version? I have made php feeds using the following and I saw one .aspx page referenced above but it was outdated and had no twitter feed implemented.
Hey there Andy… Maybe you can help. I am getting the following error:
Uncaught ReferenceError: exception is not defined twitterfeed.js:115
(anonymous function) twitterfeed.js:115
l jquery-2.0.3.min.js:4
c.fireWith jquery-2.0.3.min.js:4
k jquery-2.0.3.min.js:6
(anonymous function)
I removed the “echo” as mentioned above, but still getting the error..
thanks in advance.