Dynamic data-text on tweet button

widgetsjs

#1

I generate content for my tweet button dynamically, but even when I have my script to run first widget.js still runs before, I tried using twttr.widget.load() to update the value but it didn’t work.

Is it possible to update the value of the twitter button after it has already loaded initially? Or make it so it initializes after the content has loaded?


#2

The Tweet button JavaScript factory function allows dynamic creation of a Tweet button inside a specified container element.
https://dev.twitter.com/web/tweet-button/javascript-create


#3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.