Announcement

Collapse
No announcement yet.

Updated Twitter API has killed our feed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Updated Twitter API has killed our feed

    I knew it was coming, and had experimented with different Twitter code to try to head off the inevitable. I didn't get very far.

    Anyway on June 11th the changes meant the feed on our home page - embedded in a fragment - stopped working.

    This is what you have to use for the new widget code:
    Code:
    <a class="twitter-timeline" data-dnt="true" href="https://twitter.com/MyTwitterUsernamee" data-widget-id="series of digits">Tweets by @snorestore</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>
    But even with !!< >!! the timeline won't display. All you get is "Tweets by @snorestore"

    Please can someone help?

    Here are some relevant Twitter pages:
    https://dev.twitter.com/docs/embedded-timelines
    https://dev.twitter.com/docs/intents/events
    Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

    #2
    The [0] outputs in HTML as <Actinic:Variable Name = '0'/> because of a SellerDeck bug, add spaces around the 0 see: here. Also widgets.js gets output with acatalog/ because of a bug, write the .js as %2Ejs see: here.
    Peblaco

    Comment


      #3
      is it the code that isn't working at all, or embedding it in a fragment that's causing the trouble?

      if I use the widget thingy https://twitter.com/settings/widgets and then just paste that into an index.html it seems to work fine

      http://weather.60redwood.com/tweets/
      Steve Wardell
      Operations Director
      __________________________

      Comment


        #4
        It's putting it into a fragment, then. I will try Louise's suggested changes and see how far I get. Thanks, both.
        Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

        Comment


          #5
          Louise you are A STAR. Made the changes you suggested and it works! Just need to tweak a couple of other settings now. Am so so grateful
          Reusable Snore Earplugs : Sample Earplugs - Wax Earplugs - Women's Earplugs - Children's Earplugs - Music Earplugs - Sleep Masks

          Comment


            #6
            I struggled with this too. I had to put the code below in the header of the page.

            Code:
            <!-- Twitter code <head> section START -->
            <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%2Ejs";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
            </script>
            <!-- Twitter code <head> section END -->
            1. I had to put a space either side of the 0, [ 0 ]
            2. Also changed '.js' to %2Ejs


            Then put the other code in a fragment, worked well.

            Thanks
            Mash

            Comment

            Working...
            X