CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



PEternia
New User

Nov 29, 2011, 8:37 AM

Post #1 of 1 (916 views)
Using OpenGraph / Facebook in Perl Can't Post

Hello,

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"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://www.facebook.com/2008/fbml">


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

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives