The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Twitter Share Issue
MutantWizard
post Jun 20 2021, 04:53 AM
Post #1





Group: Members
Posts: 9
Joined: 23-January 14
Member No.: 20,266



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>
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 20 2021, 11:09 AM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



I get asked to login at Twitter. And I can't since I don't have an account there.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
MutantWizard
post Jun 20 2021, 12:47 PM
Post #3





Group: Members
Posts: 9
Joined: 23-January 14
Member No.: 20,266



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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 20 2021, 02:46 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Yes. Do you expect us to register?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
MutantWizard
post Jun 20 2021, 04:32 PM
Post #5





Group: Members
Posts: 9
Joined: 23-January 14
Member No.: 20,266



Solved

This post has been edited by MutantWizard: Jun 20 2021, 04:36 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th March 2024 - 11:49 PM