Hi! PHP is server side scripting and would therefore not enable you to retrieve a page's title because it lies on the client side. However I would suggest that you changed in your html part of the side to do something like this... First: <?php $title="Your Page Title"; ?> PHP: Then: <html> <head> ... meta tags ... <title><?php echo $title; ?></title> </head> <body> .... HTML: Finally, in your script you could easily put $facebook=$title; and get the same result.
I'd then have to go and change all the title tags, I want it done this way so that I can just put my php include into each page and its done, but with a variated ID somehow