Home: Perl Programming Help: Intermediate:
Using OpenGraph / Facebook in Perl

New User

Nov 29, 2011, 8:37 AM

Views: 1814
Using OpenGraph / Facebook in Perl


I'm not sure if it is a big issue or not, but I'm trying to integrate OpenGraph / Facebook in my Perl-Page to enable
a "Like" Button which "provides" the correct data of my page like title, image etc. To make that sure I've read that
I have to use the OpenGraph Tags like<meta property="og:title" content="Smith hails 'unique' Wable legacy" /> <meta property="og:description" content="John Smith claims beautiful football is the main legacy of Akhil Wable's decade at the club. " /> <meta property="og:image" content="http://www.onjd.com/design05/images/PH2/WableAFC205.jpg" />

But that's not all. I also have to use this kind of header and that is my problem:

<html xmlns="http://www.w3.org/1999/xhtml"

I'm using CGI.PM and the "header" function to create the following header: <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
How can I tell Perl / CGI.PM to create a header like Facebook expect? Currently my Perl-Code looks like this print header(),
start_html(-title=>"$HTMLTitle", . . . Can anyone help me? Thank you very much Manuel