Including Twitter Widgets.js via HTTPS

后端 未结 6 2129
面向向阳花
面向向阳花 2021-02-08 03:23

I\'m having a minor problem with Mixed-content on HTTPS served pages on our site, when we include the http://platform.twitter.com/widgets.js

Apparently Twitter doesn\'t

6条回答
  •  Happy的楠姐
    2021-02-08 03:39

    Had this same problem.

    Was able to work around it by making my own javascript popup window and passing the params in manually. Doesn't depend on any external twitter stuff.

    You'll have to download the tweet button image and save it locally on your own servers as well.

    
    

    You can use something like this to encode the text of the tweet and url if needed: http://meyerweb.com/eric/tools/dencoder/

    Here is a description of the params you can pass in to that URL: http://dev.twitter.com/pages/tweet_button#properties

提交回复
热议问题