Twitter Control é um User Control que gerencia e incorpora em sua página, varios tipos de plugins, tais como Tweet Button, Follow Button, Embedded Tweets, Embedded Video e Embedded Timelines do Twitter para integrar com seu site. Já vem com um exemplo (Xpz).
Tweet Button
O botão Tweet é um pequeno botão exibido em seu site para ajudar os telespectadores facilmente compartilhar seu conteúdo no Twitter. Um botão Tweet consiste em duas partes: um link para um Tweet compositor no Twitter.com e os widgets do Twitter JavaScript para melhorar a ligação com o botão oficial e facilmente reconhecível Tweet do Twitter.
Tweet Button Parâmetro de Referência
Embedded Tweet parâmetro de referência
An Embedded Tweet supports customization in data-* attributes and JavaScript factory functions. This reference document describes parameters used in all formats.
Reference the oEmbed API to set these parameters as part of an HTML response for a Tweet ID or URL.
Parameters
id requiredThe numerical ID of the desired Tweet.
Example Values: 20
cards optionalWhen set to hidden
, links in a Tweet are not expanded to photo, video, or link previews.
Example Value: hidden
conversation optionalWhen set to none
, only the cited Tweet will be displayed even if it is in reply to another Tweet.
Example Value: none
lang optionalA supported Twitter language code.
Loads text components in the specified language. Note: does not affect the text of the cited Tweet.
Example Value: es
dnt optionalWhen set to true
, the Tweet and its embedded page do not influence Twitter targeting including suggested accounts.
Example Value: true
theme optionalWhen set to dark
, displays Tweet with light text over a dark background.
Example Value: dark
link-color optionalAdjust the color of Tweet links with a hexadecimal color value.
Note: JavaScript factory function uses should use the linkColor
parameter.
Example Value: #55acee
width optionalThe maximum width of the rendered Tweet in whole pixels. This value should be between 250 and 550 pixels.
Example Value: 325
align optionalFloat the Tweet left
, right
, or center
relative to its container. Typically set to allow text or other content to wrap around the Tweet.
Example Value: right
Embedded Video
Um vídeo incorporado traz o melhor conteúdo de vídeo criado no Twitter em seu artigo ou site em um Tweet exibição otimizada-video.
Embedded Video Parâmetro de Referência
id requiredThe numerical ID of the desired Tweet.
Example Value: 560070183650213889
status optionalWhen set to hidden
, selecting the Twitter bird logo on the bottom corner of the video player will link to the Tweet URL instead of displaying a Tweet overlay.
Example Value: hidden
lang optionalA supported Twitter language code.
Loads text components of a Tweet overlay in the specified language. Note: does not affect the text of the cited Tweet.
Example Value: es
Embedded Timelines
Timelines incorporados são uma maneira fácil de incorporar várias tweets no seu site em uma visão única coluna compacta. Mostrar as últimas tweets de uma única conta do Twitter, várias contas, ou toque na conversa em todo o mundo em torno de um tema agrupados em um resultado de pesquisa.
Embedded Timeline Parâmetro de Referência
chrome
Remove a display component of a timeline with space-separated tokens.
noheader
– hides the header
nofooter
– hides the footer, if visible
noborders
– removes all borders: around the widget, between Tweets, and inside a Tweet
noscrollbar
– crop and hide the timeline scrollbar, if visible
transparent
– remove background color
Example Values: transparent noborders
tweet-limit
Display an expanded timeline of between 1 and 20 Tweets.
Example Value: 5
aria-polite
Set an assertive ARIA politeness value for widget components and updates.
Example Value: assertive
lang
A supported Twitter language code.
Loads text components in the specified language. Note: does not affect the text of a Tweet displayed inside a timeline.
Example Value: es
theme
When set to dark
, displays Tweet with light text over a dark background.
Example Value: dark
link-color
Adjust the color of Tweet links with a hexadecimal color value.
Example Value: #55acee
border-color
Set the color of widget component borders, including the border between Tweets, with a hexadecimal color value.
Example Value: #a80000
width
Set the maximum width of the widget between 180 and 520 pixels.
Example Value: 300
height
Set the height of a displayed widget, overriding the value stored with the widget ID. Must be greater than 200 pixels.
Note: the height parameter does not apply when a tweet-limit
parameter is specified
Example Value: 400
Parâmetros de substituição
The following parameters override the data source for the specific widget ID.
screen-name
Display Tweets from a Twitter user specified by @username.
Applies to embedded user timelines.
Example Value: TwitterDev
user-id
Display Tweets from a Twitter user specified by ID.
Applies to embedded user timelines.
Example Value: 2244994945
list-owner-screen-name
Display a Twitter list belonging to a Twitter user specified by @username. Must be paired with a specific list provided by list-slug
or list-id
.
Applies to embedded list timelines.
Example Value: TwitterDev
list-owner-id
Display a Twitter list belonging to a Twitter user specified by ID. Must be paired with a specific list provided by list-slug
or list-id
.
Applies to embedded list timelines.
Example Value: 2244994945
list-slug
Display a Twitter list using a short identifier selected by its curator. Must be paired with a list curator provided by list-owner-screen-name
or list-owner-id
.
Applies to embedded list timelines.
Example Value: national-parks
list-id
Display a Twitter list using a unique identifier assigned by Twitter. Must be paired with a list curator provided by list-owner-screen-name
or list-owner-id
.
Applies to embedded list timelines.
Example Value: 207763459
custom-timeline-id
Display a collection of Tweets specified by a collection identifier.
Applies to embedded collection timelines.
Example Value: 539487832448843776
Implementando
Muito simples e prático de ser utilizado, simplesmente passar o endereço da pagina, para seguir, compartilhar e para o restante, possui também outras configurações disponiveis, caso desejar, veja:
Event Start //Compartilhar um link TwitterControl1.DataVia = 'Weltowjn' TwitterControl1.Href = 'https://twitter.com/share' //Follow Button TwitterControl2.DataVia = 'Weltowjn' TwitterControl2.Href = 'https://twitter.com/Weltowjn' //Embedded Tweets TwitterControl3.DataVia = 'Weltowjn' TwitterControl3.Href = 'https://twitter.com/Weltowjn/status/619511906018193408' //Embedded Video TwitterControl4.DataVia = 'Twitter' TwitterControl4.Href = 'https://twitter.com/twitter/status/560070183650213889' //Embedded Timelines TwitterControl5.DataVia = 'Weltowjn' TwitterControl5.Href = 'https://twitter.com/Weltowjn' EndEvent