While working on embedding some Tweets on my webpage, I encountered the following error message:
GET https://cdn.api.twitter.com/1/friendships/exists.json?user_a=19463349&screen_name_b=mrland_news&callback=twttr.setFriendshipExists 403 (Forbidden) follow_button.html:1
GET https://cdn.api.twitter.com/1/friendships/exists.json?user_a=19463349&screen_name_b=BeautyBubble&callback=twttr.setFriendshipExists 403 (Forbidden) follow_button.html:1
This issue only arises when I am logged into Twitter. Once I log out, the errors disappear. It seems that a widget is causing this problem, specifically:
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
If I remove the above line, the errors vanish, but so does the nice formatting of the Tweets. Would incorporating OAuth solve this problem? I'd prefer not to, as this app is intended to be anonymous.
Edit: I am not triggering that API call myself; it seems to be coming from widgets.js. I am embedding the Tweet in the following manner:
<blockquote class="twitter-tweet">
<p>This is a direct report from heaven! Or the ESPN 12 screen tv room at Sports Center
<a href="http://t.co/qsoUuprP" title="http://twitter.com/jimcramer/status/260071104171876353/photo/1">twitter.com/jimcramer/stat…</a>
</p>— Jim Cramer (@jimcramer)
<a href="https://twitter.com/jimcramer/status/260071104171876353" data-datetime="2012-10-21T17:32:38+00:00">October 21, 2012</a>
</blockquote>
<script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>`