If you haven’t installed the new code, it’s here: https://twitter.com/about/resources/buttons#follow
Even if you have already done that, you may still get that error message instead of the button. What you need to do is clear your browser cache, and it will show up fine.
On Chrome on Mac you click the Chrome menu button and select “Clear Browsing Data”, another menus will pop up, “Empty the Cache” should already be checked, but if not check that one.
3 responses to “How To Fix Access Denied Error On Twitter Follow Button”
Hi I was using below script last two years but now it was not working got access denied error in widget
!function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? ‘http’ : ‘https’;
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id; js.src = p + “://platform.twitter.com/widgets.js”;
fjs.parentNode.insertBefore(js, fjs);
}
}
(document, “script”, “twitter-wjs”);
Can you have any idea but it was working in chrome browser when onclick any link or image access denied
can you please check any idea on thios
It’s still not working here (even on your website) !! What do I do ?
Yeah, you’re right. Looks like they’ve changed the code so that the “embedded timeline” includes media like the facebook version does. I’ve just fixed mine, so I appreciate your comment. What you have to do is create a new widget from within your Twitter account itself. When you’re on the web version of Twitter and logged in, you click that wrench icon, top of the screen, just to the right of the search box, then click “Settings” and then “Widgets” which is listed in a vertical menu on the left side of the page. From there you can create your new widget and grab the code to imbed it. Here’s the official Twitter web page on how to do this: https://dev.twitter.com/docs/embedded-timelines
But thanks for your comment, because I noticed my timeline had disappeared a while back, (even after this original post about it) and I was just to lazy to go in there and fix it. So your comment prompted me to do so. 🙂