Posted by: MutantWizard Jun 20 2021, 04:53 AM
Im a total noob at HTM but have managed to put together a small website by editing HTML from a template. I added a couple share buttons with code from respective social sites. Facebook works but having an issue with twitter. Tweet window pops up but the expected content is not pre-populated into the tweet. Have been mulling over it moving it around for days and still the same issue. Could someone please let me know what Im doing wrong.
CODE
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="link" target="_blank" data-show-count="false"
data-text="Tet to be populated" data-href="https://example.zil" data-hashtags="examplehash>
<div class="title">Twitter</div>
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64
0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
</svg>
</div>
</a>
<script async defer crossorigin="anonymous" src="https://platform.twitter.com/widgets.js"></script>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fexample.zil%2F&src=sdkpreparse" class="link" target="_blank">
<div class="title">Facebook</div>
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64
0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z"></path>
</svg>
</div>
</a>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0" nonce="etHBdW1Q"></script>
Posted by: pandy Jun 20 2021, 11:09 AM
I get asked to login at Twitter. And I can't since I don't have an account there.
Posted by: MutantWizard Jun 20 2021, 12:47 PM
QUOTE(pandy @ Jun 20 2021, 11:09 AM)
I get asked to login at Twitter. And I can't since I don't have an account there.
As expected. One cant post or tweet without being logged into the respective social network.
Posted by: pandy Jun 20 2021, 02:46 PM
Yes. Do you expect us to register?