dankell
#1
We have an internal collaborators directory which I have been asked to expand with twitter information about the firms that we work with.
I have been trying to work out whether either of the following scenarios would require twitter sign-off.
-
Include a button that opens the “@username” page for the selected firm (i.e. redirect)
-
Embed the last 7 days tweets from “@username”
(i.e. tutorials/explore-a-users-tweets)
At the moment I am assuming that 1) does not need approval but that 2) requires a development account and approval. Is that correct?
All usernames are in the public domain and are company level rather than individual.
1 Like
In both cases, you can use the widgets available from publish.twitter.com to achieve these, and should not need a developer account or to use the API directly.
1 Like
dankell
#3
So I can take the embedded Timeline code generated by publish for @TwitterDev and recast it in vue.js to replace the username with the selected firm and that ok?
Something like (very roughly)
<a class="twitter-timeline" :href=twitterLink>
Tweets by TwitterDev
</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
data () {
return {
twitterLink: "https://twitter.com/" + firmTwitterHandle + "?ref_src=twsrc%5Etfw"
}
}
1 Like
I’m not a Vue expert, but in principle yes, something like that should work, assuming that the Twitter account is not protected.
2 Likes
dankell
#5
Not to worry - the example was more or less pseudocode, but illustrated was enough to illustrate the question.
1 Like
system
Closed
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.