invalid data while pasting link to facebook

Posted in: Newsmag
Post count: 8

Hello!
i have 2 problems when i post a link from my blog (laughdaily.net) to facebook.

1) First one – invalid data in description of article, even when i copy link from your website (http://gyazo.com/c37881a9111c5cd80952fc1fd16d5c9c) I need the information from post/page excerpt, or from post/page content. But now it shows double information from post name^ share buttons and so on. I also tried to add <meta property=”og:description” content=”<?php echo $description ?>” /> also
<meta property=”og:description” content=”<?php echo strip_tags(get_the_excerpt($post->ID)); ?>” />
nothing work =(

2) Second one – i dont want to show article author when i copy link to facebook

Thanks in advance

Post count: 9544

Simplest solution is to use the YOAST SEO plugin where you can manage the meta description for OG tags properly.

Post count: 6600

Hi,

I have checked the sharer for one of your posts using the FB Debug Tool and seems that you have managed to solve this as it look fine now and no author also: https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Flaughdaily.net%2Fsport%2F2014-best-epic-funny-sports-fails-compilation%2F

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.