Linked Data & Semantic Web Technology Development of Twitter Applications Part 2. Twitter for Websites Dr. Myungjin Lee.

Slides:



Advertisements
Similar presentations
Chapter 7 JavaScript: Introduction to Scripting. Outline Simple Programs Objects and Variables Obtaining User Input with prompt Dialogs – –Dynamic Welcome.
Advertisements

HTML Forms. collect information for passing to server- side processes built up from standard widgets –text-input, radio buttons, check boxes, option lists,
Symbaloo Save, access, and share all of your online resources in one central location!
Chapter 3 – Web Design Tables & Page Layout
MY NCBI (module 4.5).
Chapter 3 – Designing your web pages Dr. Stephanos Mavromoustakos.
CSS BASICS. CSS Rules Components of a CSS Rule  Selector: Part of the rule that targets an element to be styled  Declaration: Two or more parts: a.
The Web Warrior Guide to Web Design Technologies
Chapter 6 Basic forms 1. Forms and query string 2 form : a group of user input (UI) controls that accepts information from the user and sends the information.
Video, audio, embed, iframe, HTML Form
Chapter 3 Tables and Page Layout
XP Browser and Basics1. XP Browser and Basics2 Learn about Web browser software and Web pages The Web is a collection of files that reside.
Tutorial 6 Working with Web Forms
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Browser and Basics Tutorial 1. Learn about Web browser software and Web pages The Web is a collection of files that reside on computers, called.
CGI Programming: Part 1. What is CGI? CGI = Common Gateway Interface Provides a standardized way for web browsers to: –Call programs on a server. –Pass.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: Frames © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page Design.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 9: HTML Frames.
Review of last session Logon – username = l4luser02 – l4luser16 Logon – username = l4luser02 – l4luser16 Password = Startnow1 Password = Startnow1 Fill.
Bloglines.com How to use bloglines By: Jake Szymanski.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
Designing a Classroom Web Site Using NVU Beginning Level.
CHAPTER 8: Enhancing a Website Session 1. Objectives Embed a YouTube video in your website Insert a slideshow in your website Use Google fonts in your.
CST JavaScript Validating Form Data with JavaScript.
Review of last Session Adding custom html Adding custom html HTML is the language that web servers understand, all web pages are created using HTML. HTML.
CIT 256 Organizing Large Websites: Divs, DW Templates Dr. Beryl Hoffman.
Twitter is an excellent way to post your announcements on your website. This tutorial will give you a step by step on how to embed your school’s twitter.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
Website Confidence By Andrea Bailey and Nedra Rezinas.
Server-side Scripting Powering the webs favourite services.
Web Technologies Website Development Trade & Industrial Education
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Adding User Interactivity – Lesson 51 Adding User Interactivity Lesson 5.
XP Dreamweaver 8.0 Tutorial 3 1 Adding Text and Formatting Text with CSS Styles.
Patroklos Patroklou George Antoniou Constantinos Kyprianou.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 6: Links.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
JUX 1 12/26/2012 JUX Creating in Jux allows you to present your images, captions, text, blogs, etc. in a creative format. Create an Account Login at
Dynamic Web Pages & JavaScript. Dynamic Web Pages Dynamic = Change Dynamic Web Pages are web pages that change. More than just moving graphics around.
ITCS373: Internet Technology Lecture 5: More HTML.
XP Tutorial 6 New Perspectives on JavaScript, Comprehensive1 Working with Windows and Frames Enhancing a Web Site with Interactive Windows.
Lecture 2 - HTML and CSS Review SFDV3011 – Advanced Web Development 1.
JavaScript - A Web Script Language Fred Durao
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Button and Textbox. Input  Input objects are used to obtain input from the user viewing the webpage. They allow the user to interact with the Web. 
Using an HTML image (img) element’s onclick event to change the source (src) of an iframe to an embedded youtube video.
audio video object Options: controls autoplay Need to define height and width Options: controls autoplay.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Web Foundations WEDNESDAY, NOVEMBER 20, 2013 LECTURE 32: DREAMWEAVER SLIDE SHOW AND GOOGLE MAP.
Forms Collecting Data CSS Class 5. Forms Create a form Add text box Add labels Add check boxes and radio buttons Build a drop-down list Group drop-down.
Tutorial 3 Adding and Formatting Text with CSS Styles.
Adding maps, widgets, searchbox Week 07 TCNJ Web 2 Jean Chu.
Tutorial 6 Working with Web Forms. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Explore how Web forms interact with.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
HTML (Advanced) -forms, iframe, audio, video. Outline – Forms – iFrames – Audio/Video.
HTML DOM Basharat Mahmood, Department of Computer Science, CIIT, Islamabad, Pakistan 1.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring Forms, HTML5 layout.
JavaScript Events Java 4 Understanding Events Events add interactivity between the web page and the user You can think of an event as a trigger that.
JavaScript Events. Understanding Events Events add interactivity between the web page and the user Events add interactivity between the web page and the.
Embedding Videos and Slideshows. (Click on any question you have to go directly to the answer, while in presentation mode)
HTML 5 (Part 1) – Start from SCRATCH. HTML 5 – Start from SCRATCH.
Lesson 5 Introduction to HTML Forms. Lesson 5 Forms A form is an area that can contain form elements. Form elements are elements that allow the user to.
Advanced HTML Tags:.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Client-Side Internet and Web Programming
Basic HTML and Embed Codes
Tutorial 6 Creating Dynamic Pages
Embedding Videos.
Presentation transcript:

Linked Data & Semantic Web Technology Development of Twitter Applications Part 2. Twitter for Websites Dr. Myungjin Lee

Linked Data & Semantic Web Technology Twitter for Websites Twitter Buttons – the Tweet Button – the Follow Button Embedded Tweets 2

Linked Data & Semantic Web Technology Tweet Button a small widget which allows users to easily share your website with their followers User Interaction 1.The user clicks the Tweet Button 2.The user is asked to login to Twitter if they aren't already. If the user is new to Twitter they can also create an account. 3.The Share Box appears already completed with the information provided in the properties of the Tweet Button. The user can change the content if they wish. 4.Posting of the Tweet is confirmed and the user is suggested a maximum of two accounts they may wish to follow as provided in the properties of the Tweet Button. 5.The Share Box remains open until the user presses close. 3

Linked Data & Semantic Web Technology Three ways to add the Tweet Button the iFrame version "Build your own" Tweet button version 4 <iframe allowtransparency="true" frameborder="0" scrolling="no“ src=" style="width:130px; height:20px;"> #custom-tweet-button a { display: block; padding: 2px 5px 2px 20px; background: url(' 1px center no-repeat; border: 1px solid #ccc; } <a href=" target="_blank">Tweet

Linked Data & Semantic Web Technology To add the Tweet Button using Javascript the easiest way to add the Tweet Button to your website 5 Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Properties for the Tweet Button which allow you to customize its behavior 6 Query String ParameterDescription urlURL of the page to share viaScreen name of the user to attribute the Tweet to textDefault Tweet text relatedRelated accounts countCount box position langThe language for the Tweet Button counturlURL to which your shared URL resolves hashtagsComma separated hashtags appended to tweet text sizeThe size of the rendered button

Linked Data & Semantic Web Technology Properties 7 <a href=" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Properties which can be used by the Javascript Tweet Button 8 Data SourceShare query string data- attribute of anchor tag rel= attribute of a link tag Default Priority1234 URL to Tweeturldata-urlrel="canonical"HTTP Referrer via userviadata-viarel="me" Tweet texttextdata-text Content of the tag Recommended accounts relateddata-related Count box positioncountdata-counthorizontal Languagelangdata-langen URL to which your shared URL resolves counturldata-counturlthe url being shared Hashtagshashtagsdata-hashtags Sizesizedata-size

Linked Data & Semantic Web Technology Properties which can be used by the Javascript Tweet Button 9 <a href=" data-url=" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" data-url=" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Positioning the Count Box to describe how many times the URL has been Tweeted 10 <a href=" data-count="vertical" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" data-count="vertical" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); Value for the count propertynonehorizontalvertical Displays as

Linked Data & Semantic Web Technology Button Size “medium”, which is the default size, or “large” 11 <a href=" data-size="large" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" data-size="large" class="twitter-share-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Related Accounts to suggest accounts for a user to follow once they have sent a Tweet using Tweet Button screen names separated using a colon 12 data-related="anywhere:The Javascript API,sitestreams,twitter:The official account"

Linked Data & Semantic Web Technology Hashtag Buttons a Tweet button that specifies a hashtag using twitter- hashtag-button 13 <a href=" class="twitter-hashtag-button" data-lang="en">Tweet #LiST !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" class="twitter-hashtag-button" data-lang="en">Tweet #LiST !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Tweet to Buttons a Tweet button that allows you to specify a user to mention using twitter-mention-button 14 <a href=" class="twitter-mention-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" class="twitter-mention-button" data-lang="en">Tweet !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Follow Button a small widget which allows users to easily follow a Twitter account from any webpage 15

Linked Data & Semantic Web Technology Add the Follow Button to your Website Using an IFRAME Using Javascript 16 <iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name=twitterapi" style="width:300px; height:20px;"> <iframe allowtransparency="true" frameborder="0" scrolling="no" src="//platform.twitter.com/widgets/follow_button.html?screen_name=twitterapi" style="width:300px; height:20px;"> <a href=" class="twitter-follow-button“ data-show-count="false" !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs"); <a href=" class="twitter-follow-button“ data-show-count="false" !function(d,s,id){ var js,fjs=d.getElementsByTagName(s)[0]; if(!d.getElementById(id)){ js=d.createElement(s); js.id=id; js.src=" fjs.parentNode.insertBefore(js,fjs); } (document,"script","twitter-wjs");

Linked Data & Semantic Web Technology Configure your Follow Button Javascript (link data-attribute)Query string parameter User to follow(in the anchor URL)screen_name Followers count displaydata-show-countshow_count Languagedata-langlang Widthdata-widthNot Supported Alignmentdata-alignNot Supported Show Screen Namedata-show-screen-nameshow_screen_name Sizedata-sizeNot Supported 17

Linked Data & Semantic Web Technology Easiest Way to Make Button 18

Linked Data & Semantic Web Technology Embedded Tweets to take any Tweet and embed it directly in to the content of your article or website 19

Linked Data & Semantic Web Technology How to Embed a Tweet on your Website 1.Click the “More” Tweet action and select “Embed Tweet” 2.A dialog will appear providing you with an HTML embed code. 3.Copy and paste this directly into your article 20

Linked Data & Semantic Web Technology Embedded Tweets for Developers Twitter supports an oEmbed endpoint. To render a Tweet using oEmbed – Obtain an URL to or ID number of the Tweet it wants to render. – Make a request to the GET statuses/oembed endpoint, passing the Tweet URL or ID as a query parameter. GET statuses/oembed 21 { "type": "rich", "author_name": "Twitter API", "cache_age": " ", "height": null, "html": " Search API will now always return \"real\" Twitter user IDs. The with_twitter_user_id parameter is no longer necessary. An era has ended. ^TS — Twitter API November7, 2011 \n ", "author_url": " "provider_name": "Twitter", "version": "1.0", "provider_url": " "url": " "width": 550 } { "type": "rich", "author_name": "Twitter API", "cache_age": " ", "height": null, "html": " Search API will now always return \"real\" Twitter user IDs. The with_twitter_user_id parameter is no longer necessary. An era has ended. ^TS — Twitter API November7, 2011 \n ", "author_url": " "provider_name": "Twitter", "version": "1.0", "provider_url": " "url": " "width": 550 }

Linked Data & Semantic Web Technology References