嵌入式时间轴中有多个Twitter提要

问题描述:

我正在一个网站上工作,那里将有多个公司资料.每个配置文件都需要有一个Twitter提要,在每个提要中,我需要至少包含2条Twitter用户的推文(正在配置公司的公司和网站的提要本身-可能还有三分之一).

I am working on a site right now where there will be multiple company profiles. Each profile needs to have a twitter feed on it, and in each feed I need to be able to include at least 2 twitter user's tweets (the company being profiled and the site's feed itself - there may also be a third).

我有点担心与Twitter提供的内容相距太远,因为似乎他们有更改API的历史,并且每个人的提要都下降了,但是我不知道,也许在这种情况下,我不得不?我添加了jquery标记,以防此处需要脚本.

I'm a little concerned with getting too far from what twitter provides because it seems they have a history of changing the API and everyone's feeds going down, but I don't know, maybe in this case I have to? I added a jquery tag in case a script is what's necessary here.

我通过以下方式嵌入了时间轴: https://dev.twitter.com/docs/embedded -timelines ,但似乎一次只允许一个用户参与供稿. data-screen-name属性似乎仅支持1个名称.

I embedded a timeline via: https://dev.twitter.com/docs/embedded-timelines but it seems to allow only one user in a feed at a time. The data-screen-name attribute seems to only support 1 name.

我不能使用收藏夹,也不想使用列表,因为我需要为每个配置文件创建一个列表,该列表仅包括该配置文件和网站的配置文件.必须有更好的方法来做到这一点!

I can't use favorites and prefer not to use lists as I would need to create a list for every single profile which only includes that profile and the site's profile. There MUST be a better way to do this!

任何建议都值得赞赏.

我还发现了另一个使用Twitter小部件制造商的更简单方法.只需包括OR运算符和Voila!一个供稿中有两个(或更多)用户!

I found another, easier way to do this as well, using the twitter widget maker. Simply include the OR operator and Voila! two users (or more) in one feed!

https://twitter.com/settings/widgets/new /search?query = from%3Athedailyshow%20OR%20from%3Acnn

实际上,它可以变得相当先进.要制作更复杂的Feed,只需转到: https://twitter.com/search-advanced 进行搜索(多个用户(以空格分隔)),然后单击搜索,然后在结果中单击右上角的齿轮,以嵌入此搜索"将您带到微件制造商.轻松自在.

In fact, it can get quite advanced. To make a more complex feed, simply go to: https://twitter.com/search-advanced make your search (multiple users just delineated by spaces) click search, and then in the results click the gear at the top right for "embed this search" to take you to the widget maker. Easy peasy.

在href链接中提供:href="https://twitter.com/search?q=from%3Athedailyshow+OR+from%3Acnn更改用户名或添加更多用户名非常容易.我将使用jquery替换每个给定页面的值.

In the href for the link it gives: href="https://twitter.com/search?q=from%3Athedailyshow+OR+from%3Acnn it's easy enough to change the usernames or add more. I'll be using jquery to replace the values for each given page.