SlideShare a Scribd company logo
Integrating
Facebook Open Graph
       into the



                      Chris Traganos
                         @ctraganos
Facebook Open Graph @Harvard

•Provides Facebook with
 context and resources for
 sharing your likes across
 the web




•Authentic sharing tool -
 vetted likes make for great
 referrals


                               IMG: http://bit.ly/dT2how
Likes & Recommendations
Open Graph brings
     the Gazette into the
    Facebook ecosystem


og:title
og:type
og:image
og:url
og:description
og:site_name
These are <meta tags/>
Wordpress Implementation
Wordpress - header.php
<html 
<?php if(is_single()): ?>
  xmlns="http://www.w3.org/1999/xhtml" 
  xml:lang="en"xmlns:og="http://opengraphprotocol.org/schema/"
  xmlns:fb="http://www.facebook.com/2008/fbml" 
<?php endif; ?> >
   <head>
     <title><?php the_title(); ?></title>
     <link rel="stylesheet" href="/css/style.css" />

<?php if(is_single()): ?>

     <meta property="og:site_name" content="Harvard Gazette"/>

     <meta property="og:title" content="<?php bloginfo(‘name’); ?>"/>

     <meta property="og:url" content="<?php echo get_permalink($post‐>ID); ?>"/>

     <meta property="og:description" content="<?php echo get_the_excerpt(); ?>"/>

     <meta property="og:image" content="<?php echo $thumb_photo; ?>"/>

<?php endif; ?>     

   </head>
Drupal Implementation
Drupal - page.tpl.php
<html 
<?php if($node‐>type == ‘story’ ): ?>
  xmlns="http://www.w3.org/1999/xhtml" 
  xml:lang="en"xmlns:og="http://opengraphprotocol.org/schema/"
  xmlns:fb="http://www.facebook.com/2008/fbml" 
<?php endif; ?> >
   <head>
     <title><?php print $head_title; ?></title>
     <link rel="stylesheet" href="/css/style.css" />

<?php if($node‐>type == ‘story’ ): ?>

     <meta property="og:site_name" content="<?php print t(‘Home’); ?>"/>

     <meta property="og:title" content="<?php print $head_title; ?>"/>

     <meta property="og:url" content="<?php print $permalink; ?>"/>

     <meta property="og:description" content="<?php print $site_slogan; ?>"/>

     <meta property="og:image" content="<?php print $logo; ?>"/>

<?php endif; ?>     

   </head>
test
       &   debug
https://developers.facebook.com/docs/guides/web/
<fb:like>
    <!‐‐ FB Like ‐‐>
      <div id="fb‐root"></div>
      <script>
        window.fbAsyncInit = function() {
          FB.init({
            appId: '173993602616346', 
            status: true, cookie: true,
           xfbml: true});
        };
        (function() {
          var e = document.createElement('script'); e.async = true;
          e.src = document.location.protocol +
            '//connect.facebook.net/en_US/all.js';
          document.getElementById('fb‐root').appendChild(e);
        }());
      </script>

<fb:like layout="button_count" show_faces="true" width="175" action="recommend" 
font="lucida grande" colorscheme="light"></fb:like> 

<!‐‐ END OF FB Like ‐‐>


                    http://bugs.developers.facebook.net/show_bug.cgi?id=13263
Facebook Open Graph
URL Linter
http://developers.facebook.com/tools/lint
Facebook Open Graph implementation in the Harvard Gazette
Facebook Open Graph
Engagement Metrics
http://facebook.com/insights
Facebook Open Graph implementation in the Harvard Gazette
Thank you!
   Chris Traganos
christopher_traganos@harvard.edu

 @ctraganos

More Related Content

TXT
Makroekonomi topik-8-1
PPT
On-page SEO for Drupal
PDF
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
PPT
Joomla 1.6 Core SEO and Best Practices
PPT
Joomla 1.7 SEO
PPT
SEO Myths Busted II
PDF
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
PDF
Seo cheat sheet_2-2013
Makroekonomi topik-8-1
On-page SEO for Drupal
[PyConZA 2017] Web Scraping: Unleash your Internet Viking
Joomla 1.6 Core SEO and Best Practices
Joomla 1.7 SEO
SEO Myths Busted II
HTML und CSS für Designer / HTML & CSS for designers (PUBKON 2014)
Seo cheat sheet_2-2013

What's hot (18)

PDF
Seo cheat sheet_2-2013
PDF
Creating HTML Pages
PDF
RDFa in ostala spletna semantika
TXT
Sustainable livelihood-framework-sr-presentation
PDF
#3 HTML & CSS [know-how]
PPT
Getting More Traffic From Search Advanced Seo For Developers Presentation
PPTX
On-Page SEO EXTREME - SEOZone Istanbul 2013
PPTX
All About HTML Tags
PPTX
You are the BOSS - HackU 2011
PPT
Advanced SEO for Web Developers
PPTX
Basic HTML
PDF
Seo Cheat Sheet
PPTX
JavaScript SEO Ungagged 2019 Patrick Stox
TXT
PPTX
Inbound Marketing Tools - SearchFest
PPT
SEO Myths Busted
PPTX
Technical SEO "Overoptimization"
PPT
Introduction to YQL - Talk at HackU 2010, IIT Chennai
Seo cheat sheet_2-2013
Creating HTML Pages
RDFa in ostala spletna semantika
Sustainable livelihood-framework-sr-presentation
#3 HTML & CSS [know-how]
Getting More Traffic From Search Advanced Seo For Developers Presentation
On-Page SEO EXTREME - SEOZone Istanbul 2013
All About HTML Tags
You are the BOSS - HackU 2011
Advanced SEO for Web Developers
Basic HTML
Seo Cheat Sheet
JavaScript SEO Ungagged 2019 Patrick Stox
Inbound Marketing Tools - SearchFest
SEO Myths Busted
Technical SEO "Overoptimization"
Introduction to YQL - Talk at HackU 2010, IIT Chennai
Ad

Similar to Facebook Open Graph implementation in the Harvard Gazette (20)

TXT
Espacios en-tu-vida
DOCX
Doctype html
PDF
Mobile themes, QR codes, and shortURLs
TXT
Test upload
PPT
WordPress Development Confoo 2010
PDF
Agile Wordpress
PDF
Seo cheat-sheet
PPTX
The Django Web Application Framework 2
PPTX
The Django Web Application Framework 2
PPTX
The Django Web Application Framework 2
PPTX
The Django Web Application Framework 2
TXT
Dorothea orem-theory
PDF
Grok Drupal (7) Theming - 2011 Feb update
PPTX
PSD to WordPress
PPTX
The Way to Theme Enlightenment
ODP
Drupal Theme Development - DrupalCon Chicago 2011
PPTX
Apex & jQuery Mobile
TXT
TXT
Los Estados De La Materia
TXT
El Tiempo Nos Ensea 214392
Espacios en-tu-vida
Doctype html
Mobile themes, QR codes, and shortURLs
Test upload
WordPress Development Confoo 2010
Agile Wordpress
Seo cheat-sheet
The Django Web Application Framework 2
The Django Web Application Framework 2
The Django Web Application Framework 2
The Django Web Application Framework 2
Dorothea orem-theory
Grok Drupal (7) Theming - 2011 Feb update
PSD to WordPress
The Way to Theme Enlightenment
Drupal Theme Development - DrupalCon Chicago 2011
Apex & jQuery Mobile
Los Estados De La Materia
El Tiempo Nos Ensea 214392
Ad

More from Harvard Web Working Group (20)

PDF
The Internet of Things (IoT)
PPTX
Perception is Reality: Lessons Learned from User Research
PDF
5 Steps to (Remote) Team Bliss: How to Build Thriving, High-Performing (Remot...
PPTX
Ui Testing with Ghost Inspector
PDF
Starting out with MongoDB
PPTX
The Process of Communication, A Practical Guide for Project Managers
PPTX
Universal Design for Learning: A framework for addressing learner diversity
PDF
Intro to ReactJS
PDF
UX @ Harvard's IQSS (Elizabeth Quigley)
PDF
Tania Schlatter – Visual Usability
PDF
Responsive Design: Building for a Modern Web
PDF
Demystifying UX – A toolkit approach to better, cheaper & faster experience d...
PPTX
Will my helicopter fit in your garage?
PDF
Every Screen is a Touchscreen
PDF
Tastypie: Easy APIs to Make Your Work Easier
PDF
An Introduction to MIT's Drupal Cloud
PDF
PDF
Jumpstart Your Web App
PDF
Draw More, Talk Less
PDF
Mat Marquis - JQuery Mobile
The Internet of Things (IoT)
Perception is Reality: Lessons Learned from User Research
5 Steps to (Remote) Team Bliss: How to Build Thriving, High-Performing (Remot...
Ui Testing with Ghost Inspector
Starting out with MongoDB
The Process of Communication, A Practical Guide for Project Managers
Universal Design for Learning: A framework for addressing learner diversity
Intro to ReactJS
UX @ Harvard's IQSS (Elizabeth Quigley)
Tania Schlatter – Visual Usability
Responsive Design: Building for a Modern Web
Demystifying UX – A toolkit approach to better, cheaper & faster experience d...
Will my helicopter fit in your garage?
Every Screen is a Touchscreen
Tastypie: Easy APIs to Make Your Work Easier
An Introduction to MIT's Drupal Cloud
Jumpstart Your Web App
Draw More, Talk Less
Mat Marquis - JQuery Mobile

Recently uploaded (20)

PPT
Lesson From Geese! Understanding Teamwork
DOCX
Paulo Tuynmam: Nine Timeless Anchors of Authentic Leadership
PDF
relational self of self improvements etc
PPTX
Hazards-of-Uncleanliness-Protecting-Your-Health.pptx
PDF
Psychology and Work Today 10th Edition by Duane Schultz Test Bank.pdf
PPTX
Life Skills Education - Introduction - 1
PDF
The Blogs_ Humanity Beyond All Differences _ Andy Blumenthal _ The Times of I...
PPT
Sanskar for Kids a cultural intervension
PPTX
2-THE-NATIONAL-EARLY-LEARNING-FRAMEWORK.STE.pptx
PPTX
Modulation is the process of varying one or more properties of a carrier sign...
PDF
Lesson 4 Education for Better Work. Evaluate your training options.
PDF
Want to Fly Like an Eagle - Leave the Chickens Behind.pdf
PPTX
SELF ASSESSMENT Power Point Presentation Activity
PDF
Dominate Her Mind – Make Women Chase, Lust, & Submit
PDF
Anxiety Awareness Journal One Week Preview
PPTX
Unlocking Success Through the Relentless Power of Grit
PPTX
Arabic Grammar with related Qurani ayat .pptx
PDF
How Long Does It Take to Quit Vaping.pdf
PPT
Thinking Critically Presentation w Exercise.ppt
PPTX
A portfolio Template for Interior Designer
Lesson From Geese! Understanding Teamwork
Paulo Tuynmam: Nine Timeless Anchors of Authentic Leadership
relational self of self improvements etc
Hazards-of-Uncleanliness-Protecting-Your-Health.pptx
Psychology and Work Today 10th Edition by Duane Schultz Test Bank.pdf
Life Skills Education - Introduction - 1
The Blogs_ Humanity Beyond All Differences _ Andy Blumenthal _ The Times of I...
Sanskar for Kids a cultural intervension
2-THE-NATIONAL-EARLY-LEARNING-FRAMEWORK.STE.pptx
Modulation is the process of varying one or more properties of a carrier sign...
Lesson 4 Education for Better Work. Evaluate your training options.
Want to Fly Like an Eagle - Leave the Chickens Behind.pdf
SELF ASSESSMENT Power Point Presentation Activity
Dominate Her Mind – Make Women Chase, Lust, & Submit
Anxiety Awareness Journal One Week Preview
Unlocking Success Through the Relentless Power of Grit
Arabic Grammar with related Qurani ayat .pptx
How Long Does It Take to Quit Vaping.pdf
Thinking Critically Presentation w Exercise.ppt
A portfolio Template for Interior Designer

Facebook Open Graph implementation in the Harvard Gazette

  • 1. Integrating Facebook Open Graph into the Chris Traganos @ctraganos
  • 2. Facebook Open Graph @Harvard •Provides Facebook with context and resources for sharing your likes across the web •Authentic sharing tool - vetted likes make for great referrals IMG: http://bit.ly/dT2how
  • 4. Open Graph brings the Gazette into the Facebook ecosystem og:title og:type og:image og:url og:description og:site_name These are <meta tags/>
  • 6. Wordpress - header.php <html  <?php if(is_single()): ?> xmlns="http://www.w3.org/1999/xhtml"  xml:lang="en"xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"  <?php endif; ?> >    <head>      <title><?php the_title(); ?></title>    <link rel="stylesheet" href="/css/style.css" /> <?php if(is_single()): ?>    <meta property="og:site_name" content="Harvard Gazette"/>    <meta property="og:title" content="<?php bloginfo(‘name’); ?>"/>    <meta property="og:url" content="<?php echo get_permalink($post‐>ID); ?>"/>    <meta property="og:description" content="<?php echo get_the_excerpt(); ?>"/>      <meta property="og:image" content="<?php echo $thumb_photo; ?>"/> <?php endif; ?>         </head>
  • 8. Drupal - page.tpl.php <html  <?php if($node‐>type == ‘story’ ): ?> xmlns="http://www.w3.org/1999/xhtml"  xml:lang="en"xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"  <?php endif; ?> >    <head>      <title><?php print $head_title; ?></title>    <link rel="stylesheet" href="/css/style.css" /> <?php if($node‐>type == ‘story’ ): ?>    <meta property="og:site_name" content="<?php print t(‘Home’); ?>"/>    <meta property="og:title" content="<?php print $head_title; ?>"/>    <meta property="og:url" content="<?php print $permalink; ?>"/>    <meta property="og:description" content="<?php print $site_slogan; ?>"/>      <meta property="og:image" content="<?php print $logo; ?>"/> <?php endif; ?>         </head>
  • 9. test & debug
  • 10. https://developers.facebook.com/docs/guides/web/ <fb:like> <!‐‐ FB Like ‐‐>     <div id="fb‐root"></div>     <script>       window.fbAsyncInit = function() {         FB.init({     appId: '173993602616346',      status: true, cookie: true,          xfbml: true});       };       (function() {         var e = document.createElement('script'); e.async = true;         e.src = document.location.protocol +           '//connect.facebook.net/en_US/all.js';         document.getElementById('fb‐root').appendChild(e);       }());     </script> <fb:like layout="button_count" show_faces="true" width="175" action="recommend"  font="lucida grande" colorscheme="light"></fb:like>  <!‐‐ END OF FB Like ‐‐> http://bugs.developers.facebook.net/show_bug.cgi?id=13263
  • 11. Facebook Open Graph URL Linter http://developers.facebook.com/tools/lint
  • 13. Facebook Open Graph Engagement Metrics http://facebook.com/insights
  • 15. Thank you! Chris Traganos christopher_traganos@harvard.edu @ctraganos