I'm trying to embed a twitter widget with a standard code in a cord, but somehow it creates a link instead of a widget

I am trying to embed a widget in a phonegap / cordova application with standard code:

<a class="twitter-timeline" href="https://twitter.com/Elevraadet_OG" data-widget-id="xxxxxxxxxxxxxxxxxx" data-chrome="noheader nofooter transparent noscrollbar" data-tweet-limit="16">Tweets af @Elevraadet_OG</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>

Once this only creates a Tweets af @Elevraadet_OG link instead of a widget, why doesn't it work?

+4
source share
1 answer

So far I have discovered that there is a problem with the corridor + twitter feed. Here's a long discussion. Built-in timelines in PhoneGap

. . inAppBrowser Twitter Timeline PhoneGap

+2

Source: https://habr.com/ru/post/1546411/


All Articles