jasonmayes / Twitter-Post-Fetcher

Fetch your twitter posts without using the new Twitter 1.1 API. Pure JavaScript! By Jason Mayes
http://www.jasonmayes.com/projects/twitterApi
Other
910 stars 234 forks source link

Uncaught ReferenceError #178

Closed webguy262 closed 6 years ago

webguy262 commented 6 years ago

We use Twitter Fetcher to display tweets in the "chatter" grid toward the bottom of the homepage of this site.

Twitter Fetcher stopped working so I upgraded to the latest versions of twitterFetcher_min.js and exampleUsage.js (your default one).

However, I'm still getting the error:

exampleUsage.js:85 Uncaught ReferenceError: twitterFetcher is not defined
    at exampleUsage.js:85

I also did a test page here and am getting this error:

Uncaught TypeError: Cannot set property 'innerHTML' of null
    at handleTweets (twitterFetcher_min.js:12)
    at Object.callback (twitterFetcher_min.js:66)
    at list?callback=__twttrf.callback&dnt=false&list_slug=inspiration&screen_name=jason_mayes&suppress_response_codes=true&lang=en&rnd=0.48398372253476585:1

What am I missing?

jasonmayes commented 6 years ago

Sounds like you have not included the code properly and/or the HTML element you are trying to inject stuff into does not exist before the call to Twitter Fetcher