Author Topic: Twitter  (Read 255 times)

0 Members and 1 Guest are viewing this topic.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1523
    • Texas Weather
Twitter
« on: April 14, 2019, 03:27:14 PM »
How can I display my twitter feed on my index page?

TIA!

Regards,
-

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline Otis

  • (aka Paul)
  • Forecaster
  • *****
  • Posts: 578
    • Lake Huron Weather
Re: Twitter
« Reply #1 on: April 14, 2019, 05:35:13 PM »
Sounds like you have a Twitter account: just go to the Help Center, Website and App Integration and you should find what you need.

Davis Vantage Pro2, Serial Data Logger,
WD 10.37S-(b60), VWS V15.00p03, Weatherlink 6.0.3,  Fling 2.35, Broadwave 2.0, Win 7 Pro 64Bit
KMICHEBO10 - CW3699 - Cheboygan, MI

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1523
    • Texas Weather
Re: Twitter
« Reply #2 on: April 14, 2019, 08:21:20 PM »
Thanks I got it... Didnt know about that... Only issue is that they no longer support scrolling box so i am trying to figure out to embed in to a box with scrolling support.

Thanks again!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 498
    • LexMAWeather
Re: Twitter
« Reply #3 on: April 14, 2019, 08:35:50 PM »
Have a look at https://lexmaweather.info/ -  scroll down and click on Twitter.  Something like that what you are looking for?

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1523
    • Texas Weather
Re: Twitter
« Reply #4 on: April 14, 2019, 08:48:47 PM »
Have a look at https://lexmaweather.info/ -  scroll down and click on Twitter.  Something like that what you are looking for?


Indeed!

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 498
    • LexMAWeather
Re: Twitter
« Reply #5 on: April 14, 2019, 09:20:49 PM »
That's pretty much what you get when you follow what Paul said - here's a shorter version than going through the help center, and then an even shorter version.  :grin:

Go directly to https://publish.twitter.com/

Under "What would you like to embed", enter @YourTwitterHandle (obviously replacing YourTwitterHandle).  Click on the right arrow.

Click Embedded Timeline.

You may want to just take what that gives you and play around with it or click on the customization options, particularly to set the height and width and to click on "opt out of tailoring twitter" (see the explanatory text there).

What you then get is something like this (I've formatted for better readability):

Code: [Select]
<a class="twitter-timeline"
 data-width="520"
 data-height="600"
 data-dnt="true"
 href="https://twitter.com/LexMAWeather?ref_src=twsrc%5Etfw">
Tweets by LexMAWeather</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>

Or, you can skip all that and just start with that code and edit to fit your handle and size requirements.

There are a few other options you can add as explained here:

 https://developer.twitter.com/en/docs/twitter-for-websites/timelines/overview.html

For mine, right below the "data-dnt" I added:

Code: [Select]
data-chrome="nofooter noborders"
Don't set "noscrollbar" or you'll just defeat what you are looking for.  :grin:

I don't have the "?ref_src" option in my URLs - not sure if I removed them or if, at the time I created the widgets, the tool didn't include that.

I think that's it, but let me know if I screwed something up.

Offline txweather.org

  • Forecaster
  • *****
  • Posts: 1523
    • Texas Weather
Re: Twitter
« Reply #6 on: April 15, 2019, 06:10:31 AM »
Thanks for the help!
« Last Edit: April 15, 2019, 06:24:47 AM by txweather.org »

----
Davis Vantage Pro2 Plus +FARS|Meteobridge Nano SD|Meteohub|Meteobridge MR-3020|WU KTXSPRIN75/PWS JRARGWX75/CWOP EW2972/WBB TXWDVUE75/Blitzortung ID: 1142|AWEKAS: 12095
Donations are welcome: https://paypal.me/ffuentesb

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 498
    • LexMAWeather
Re: Twitter
« Reply #7 on: April 15, 2019, 05:28:13 PM »
Do want to note a bug in the embedded timeline. For quoted tweets, where one tweet is embedded in another, the embedded tweet does not show up in the timeline. So context can become lost in those cases.

This has been known to the Twitter peeps for quite a while and hasn't been fixed. Maybe I'll go dive into their forum again to see if there is any more chatter about it.

 

anything