2011-12-16, 10:06:43
REPORT a BUG:
When I use Ur plugin with News Manager it gives facebook wrong adreses.
Example:
You are in:
site.com/news/post/somepost
when You click "like", on Your FB wall You get:
site.com/news/
I don't really know why it happens, but solution for that (what I was able to find in day is to add:
in shareme();
It's not great, because images from site are not including, but link on Your FB wall is properly made.
Also, You call get_site_name & get_page_clean_title on every page.. and that just stupid..
If You can fix other portals (mainly google, others are ussles for me ) I will be glad.
When I use Ur plugin with News Manager it gives facebook wrong adreses.
Example:
You are in:
site.com/news/post/somepost
when You click "like", on Your FB wall You get:
site.com/news/
I don't really know why it happens, but solution for that (what I was able to find in day is to add:
in shareme();
Code:
echo '<meta property="og:site_name" content="'.get_site_name(false).'" />';
echo '<meta property="og:title" content="'.get_page_clean_title(false).' - '.get_site_name(false).'"/>';
echo '<meta property="og:locale" content="pl_PL"/>';
echo '<meta property="og:url" content="http://'.$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'].'"/>';
It's not great, because images from site are not including, but link on Your FB wall is properly made.
Also, You call get_site_name & get_page_clean_title on every page.. and that just stupid..
If You can fix other portals (mainly google, others are ussles for me ) I will be glad.