Session 8: Integrating Social Media
Linking to your social media accounts
Read the following article on embedding social media:
Facebook has a plug-in generator that will allow you to embed a variety of Facebook items.
Follow/like on Facebook
Select Like Button from the left hand menu.
Load the configurator and change/add your details.
We will use the iFrame code as it is much more reliable and does not use Javascript SDK
Paste the code into your HTML file where you would like the button to be.
Save and run your code
And the result:
HINT: Start with a blank HTML, add the basic elements, then try adding the code for Facebook integration. Make sure you Save As HTML file first.
<html>
<head><title>Integrating Social Media</title></head>
<body>
</body>
</html>
---------------
<h2>You can use a link such as this </h2>
<a href="https://www.youtube.com/watch?v=sY-1hoS1W9E" target=_blank>HTML vs CSS video</a>
---------------
Twitter
Twitter, like Facebook, also has a developers area that has information on how to integrate Twitter on to a website. The following link has some information on how you can integrate Twitter.
Use Twitter Publish to incorporate Twitter information on a webpage
https://publish.twitter.com/#
For this example, I have embedded the Chisholm Institute timeline.
Pinterest
Pinterest also has a developers section with information on widgets and embedding.
https://developers.pinterest.com/docs/getting-started/introduction/?
https://blogpros.com/blog/2019/01/ways-embed-pinterest-blog
The Pinterest widgets use Javascript and do not work unless your HTML is published on the web. To demonstrate the Pinterest widgets, you could embed the code into a Blog (as it will be published).
Instagram
Yes, you guessed it - Instagram also has a developers' page with information on how to embed Instagram posts and feeds.
https://www.instagram.com/developer/embedding/
We will use the iFrame code as it is much more reliable and does not use Javascript SDK
Paste the code into your HTML file where you would like the button to be.
Save and run your code
Page Plugin
I added a like and embedded the page so my test web page looks like this:
Embedded posts and videos
You can embed any public post from Facebook. I have made this Facebook post public to demonstrate.And the result:
Class Activity 1
Using the above methods, create an HTML file that can be used to practice integrating Facebook.
HINT: Start with a blank HTML, add the basic elements, then try adding the code for Facebook integration. Make sure you Save As HTML file first.
<html>
<head><title>Integrating Social Media</title></head>
<body>
</body>
</html>
YouTube
There are 2 ways to integrate YouTube with your website. You can use the YouTube link with the <a> element or you can embed the video onto your website.---------------
<h2>You can use a link such as this </h2>
<a href="https://www.youtube.com/watch?v=sY-1hoS1W9E" target=_blank>HTML vs CSS video</a>
---------------
Activity 2
Using the same HTML file as the previous activity, try embedding a YouTube video of your choiceUse Twitter Publish to incorporate Twitter information on a webpage
Embedding a Twitter Timeline
Embedding all things Twitter starts here:https://publish.twitter.com/#
For this example, I have embedded the Chisholm Institute timeline.
Twitter Follow
Activity 3
Try out some of the Twitter embedding options.https://developers.pinterest.com/docs/getting-started/introduction/?
Pinterest Widgets
https://developers.pinterest.com/tools/widget-builder/?https://blogpros.com/blog/2019/01/ways-embed-pinterest-blog
The Pinterest widgets use Javascript and do not work unless your HTML is published on the web. To demonstrate the Pinterest widgets, you could embed the code into a Blog (as it will be published).
below is Sample ALIA board embedded on page
https://www.instagram.com/developer/embedding/
Embedded Post
TikTok
Here is some information about embedding TikTok videos on a webpage
This is an example of ways you can share TikTok videos. the <> at the end is for embedding and will give you the code to copy.
Comments
Post a Comment