pretty url for og:url
Permalink
in my header_required.php i'm including some facebook open graph code and it requires the page url. i'm able to use the navigation helper to echo the current url but it isn't "pretty".
ideas?
global $c; $nh = Loader::helper('navigation'); $cpl = $nh->getCollectionURL($c); <meta property="og:url" content="<?php echo $cpl ?>"/>
ideas?
All the facebook stuff I did, I used javascript, and callhttp://graph.facebook.com/... different ways. I never had to set the url. The above way is the best way suggested, to get the url. I know this does not answer your question, but you might want to look into javascript, if you do not want to use the URL. And all the stuff I did was blocks. I also used curl post to interact with facebook. Which I used something like
to use the URL on curl post (which is basically the same thing as above).
$currentPage = Page::getCurrentPage(); Loader::helper('navigation'); echo '<meta http-equiv="refresh" content="0;URL='.NavigationHelper::getLinkToCollection($currentPage, true).'">';
to use the URL on curl post (which is basically the same thing as above).
Did you ever figure this one out? Would be interested to know as well.
Thanks!
Andrey