Hi,
I used the Twitter API on my website to get the followers of a user and display their thumbnails. When I click a thumbnail, the clicked user screen_name is stored in a javascript variable (followerClicked). What I want to do is create a tweet button that has as default text my variable followerClicked, so that I can mention the follower I selected. (I want to do this because the web intent doesn’t show me the autocomplete dropdown and I have to give my users the ability to select a follower to mention)
The first part ( connecting to the API and getting the followers) works just fine. The problem begins when I try to add my variable to the web intent. I tried to insert it in the attribute “data-related” or “data-text”. When I printed this attributes to console, everything was fine. The arguments had my variable as value. But when I created the tweet button it keeps having my page title as default text.
¿How can I get this done?
It doesn’t work when I create an tag and change the text attr either
(
Tweet)