Twitter Widgets No Longer Work On Broadcastify

Status
Not open for further replies.

gregsto

Member
Joined
Oct 29, 2004
Messages
90
Location
Baltimore, MD
Not long ago, and even after the initial change over to broadcastify, you could create a widget using the twitter widget application that is part of the settings in all twitter accounts, and this widget's code could be added to the "notes" section of a feed and the widget would appear as it was designed to. Not any more. Here is the code in question since it also fails to create the actual widget here in the threads:

Code:
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/BaltMetroNews"  data-widget-id="292693197237403648">Tweets by @BaltMetroNews</a>
<script>!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");</script>


That has suddenly stopped. The notes section no longer accepts the code (which does contain a script) and instead alters it so that only a link to your twitter account and not a scrollable widget showing your latest tweets, Sine the twitter account I use for this is dedicated to incidents, in real time, which are heard on the feed the widget is greatly missed.

HAS the ability to post these widgets changed or am I missing something?
 

ScanTN

Member
Joined
Oct 5, 2009
Messages
83
Location
Nashville, TN
Twitter Released a new API

@gregsto

Twitter has made many revisions to their API system this year. They dropped support of their old system and rolled out a new one, thus the reason your feed no longer displays.

Take a look at our page. You will notice you can still embed these within Broadcastify / RR. However, you will need to update your code and setup authentication to allow your embedded Twitter timeline to work.

Here's one of our feeds with the embedded timeline working:
Metro Nashville Police

For more info on Twitter, here is a link to their developer site:
https://dev.twitter.com

Specifically on embedded timelines:
https://dev.twitter.com/docs/embedded-timelines
 

mikewazowski

Forums Manager/Global DB Admin
Staff member
Forums Manager
Joined
Jun 26, 2001
Messages
13,742
Location
Oot and Aboot
Wow, that's quite a page. Very nice!

I generated a widget for my feed from Twitter, cut and pasted the text from Twitter and added it to my feed notes. Unfortunately all I get is a link to my tweets, no embedded timeline.

Not sure what I'm doing wrong.
 

ScanTN

Member
Joined
Oct 5, 2009
Messages
83
Location
Nashville, TN
Just a thought but are you pasting into the default text editor on your feed settings? You will need to change the editor the the 'source' or 'HTML' mode or else the cut / pasted code will appear only as text.
 

mikewazowski

Forums Manager/Global DB Admin
Staff member
Forums Manager
Joined
Jun 26, 2001
Messages
13,742
Location
Oot and Aboot
I logged into twitter using IE instead of Chrome and made sure I was logged into my twitter account I use for pages. Found that I didn't have any widgets for that account! The other account I was logged into did show the proper feedline though.

Generated a new widget, cut and pasted into Source and everything is working.

Thanks for your help!
 

gregsto

Member
Joined
Oct 29, 2004
Messages
90
Location
Baltimore, MD
Mike - You bet! Glad you were able to get it working.

Damn! We then I am odd man out. One thing you mentioned has me scratching my head a little...."setup authentication". Not sure what you mean. I recall that in the past when you created a widget you also had to specify the URL it would appear on. This no longer seems to be the case.

I created yet another widget, and, making sure I was entering into the "source" view i pasted the copied code. I checked the source on your page and the code I entered was the EXACT same code including script that appears on your page (with the twitter user names and the widget number specific to my widget of course). But no matter what I do, broadcastify changes the code to:

<a class="twitter-timeline" href="https://twitter.com/BaltMetroNews">Tweets by @BaltMetroNews</a>

Which is a far cry from

<a class="twitter-timeline" href="https://twitter.com/BaltMetroNews" data-widget-id="374647867467501568">Tweets by @BaltMetroNews</a>
<script>!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");</script>


Thoughts?
 

mikewazowski

Forums Manager/Global DB Admin
Staff member
Forums Manager
Joined
Jun 26, 2001
Messages
13,742
Location
Oot and Aboot
The funny thing is if you view your feed in the Notes section while managing your feed, it won't work. You'll see what you're seeing.

Go back out to your feed listing and click on its title like a regular listener would. You'll see your Feed notes under the listing and you should see your twitter feed.
 

gregsto

Member
Joined
Oct 29, 2004
Messages
90
Location
Baltimore, MD
The funny thing is if you view your feed in the Notes section while managing your feed, it won't work. You'll see what you're seeing.

Go back out to your feed listing and click on its title like a regular listener would. You'll see your Feed notes under the listing and you should see your twitter feed.

I was saying to myself "If I go look and that effing twitter widget is there now I am gonna....."

And....voila! Thar she blows. Of course I will swear I did this numerous times before without success. I DID find however that Twitter actually had issues with widgets disappearing from websites due to a recent API issue. https://dev.twitter.com/status

THAT may have been the issue all along. Then, simply convinced that the code was not remaining as entered and relying on the "Notes" update page rather than going to view the actual feed, I created a whole bit of nonsense for myself. Let's not speak of this again.:D

THANK YOU for your help and quick response. All is working now : Baltimore City Fire and EMS
 
Status
Not open for further replies.
Top