Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make Tweet Button work on Https Page

I'm admittedly new to SSL. My impression is that all of the files that hit the given page must come from secure sources. All my image and js files are being rerouted through https.

Is that accurate?

I want to login a user on a splash page that also contains a facebook like and tweet button. The tweet button is written for http and, when I tried to alter the protocol, it stopped working.

How can I get around this?

like image 800
Ben Avatar asked May 30 '26 14:05

Ben


1 Answers

Twitter has an FAQ on this. Basically they recommend building your own HTML tweet button. The downside is there will be no total share count displayed.

You could theoretically download all the JS that is used in the tweet button and host them on your own site but if Twitter changes how any of the APIs it uses your implementation would break. You would also likely have to modify the JS files to get them to make the count request over SSL.

like image 111
abraham Avatar answered Jun 01 '26 05:06

abraham



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!