When a user wants to share web content on Facebook , for example an article . What is shared is the url www.site.com when it should be www.site.com/m/articles/view/name_article.
In the table sys_objects_social_sharing` the following code appears
<iframe src="//www.facebook.com/plugins/like.php?href={url_encoded}&send=false&layout=button_count&width=450&show_faces=false&action=like&colorscheme=light&font&height=21&locale={locale}" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:21px;" allowTransparency="true"></iframe> . I found these two codes online which are supposed to be solved but I can not . some help?<iframe src="http://www.facebook.com/ plugins/like.php?href=<?php the_permalink(); ?> &layout=standard&show_faces=false&action=like &colorscheme=light" scrolling="no" frameborder="0" style="border:none; height:25px; width: 440px;"></iframe>
<iframe src="http://www.facebook.com/ plugins/like.php?href=<?php echo "http://mysite.com".$_SERVER['REQUEST_URI']; ?> &layout=standard&show_faces=false &action=like&colorscheme=light" scrolling="no" frameborder="0" style="border:none; height:25px; width: 440px;"></iframe>