Title: Sharing Posts via Facebook
Last modified: August 20, 2016

---

# Sharing Posts via Facebook

 *  [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/)
 * When I try to share a link to something that I have posted on my website it posts
   in this format – “(post title) – jakefreeland.com – jakefreeland.com”
 * Ideally, I would like it to read — “(post title) – jakefreeland.com”
 * If you didn’t guess, my website URL is [http://www.jakefreeland.com](http://www.jakefreeland.com)
 * Anyone have any ideas?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/sharing-posts-via-facebook/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sharing-posts-via-facebook/page/2/?output_format=md)

 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430891)
 * This is what happens when someone likes my posts on Facebook. [Example](http://jakefreeland.com/wp-content/uploads/2011/12/Screen-Shot-2011-12-04-at-10.45.57-PM.png)
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430893)
 * [https://developers.facebook.com/docs/reference/plugins/like/](https://developers.facebook.com/docs/reference/plugins/like/)
 * If you read this link, it describes what attributes you can pass to the Like 
   button in order to control how your links are posted.
 * Hope this helps.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430894)
 * If you’re using a plugin, this may be more difficult. For greater control, I 
   normally build this into my templates.
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430895)
 * I am not using a plugin, just copy/pasting a link to Facebook.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430896)
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430897)
 * Cool, no worries.
 * What facebook is trying to do is scrape your page for info that is relevant. 
   Sometimes the structure of your HTML restricts it’s crawler’s ability to do this.
 * Luckily FB have a basic meta data structure you can include in your WordPress
   theme which Facebook will find and use when pasting links into it. This includes
   setting the thumbnail, title of the link and the content box etc.
 * It’s on the link I posted above, under the heading ‘Open Graph Tags’. Read the
   page, it has all the information you need about sharing on Facebook.
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430898)
 * So basically, I just throw the given code in my header and personalize it to 
   my site?
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430900)
 * Yup, you could do this on a per post basis in order to sculpt how your posts 
   are shared, what is displayed etc.
 * Throwing it into your header with hardcoded values may always just show the same
   thing.
 * Just did a quick Google:
 * Found this plugin, which should help you out.
 * [http://wordpress.org/extend/plugins/facebook-open-graph-meta-in-wordpress/](http://wordpress.org/extend/plugins/facebook-open-graph-meta-in-wordpress/)(
   I haven’t installed or tested it)
 * And I searched for ‘wordpress og meta plugin’ and found the below. It seems to
   be from the author of the plugin. So this may actually save you any hardship 
   messing with code.
 * [http://www.wpbeginner.com/wp-themes/how-to-add-facebook-open-graph-meta-data-in-wordpress-themes/](http://www.wpbeginner.com/wp-themes/how-to-add-facebook-open-graph-meta-data-in-wordpress-themes/)
 * I may even start using it!
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430903)
 * I tried it, but it is still doing the same thing as the example that I posted
   above.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430905)
 * Well try Googling some more, there are bound to be solutions out there.
 * Good luck.
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430906)
 * Thanks for the effort.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430907)
 * No problem, if I figure out the solution myself, I’ll post it here.
 * Just a lack of free time at the min, and the fact it’s home time, so long work
   for another day 🙂
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430909)
 * I think we might have had a bit of confusion?
 * To me, it seems like the Facebook Open Graph would be used if someone is trying
   to like my page in general (actually liking jakefreland.com).
 * However, what I am saying is when someone likes an _individual_ post on my website
   it is displaying as such on Facebook — “[whatever the post title is] – jakefreeland.
   com – jakefreeland.com” — instead of what I want which is this –> “[whatever 
   the post title is] – jakefreeland.com”
 * But maybe you are right and I am just doing it wrong…
 * I guess what I am trying to say is this — I don’t understand why it would post“
   jakefreeland.com” twice instead of just once. Or instead of posting my website
   description.
 *  [Harry](https://wordpress.org/support/users/harmck/)
 * (@harmck)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430923)
 * I don’t think I have misunderstood the problem, you’re wondering what text shows
   up in a users news feed when they like a post on your site. I got that, so read
   about how the Like button works.
 * Try looking at your title tag, most likely in your header.php of your theme.
 * “The Evolution of Bowser – jakefreeland.com | jakefreeland.com” – matching the
   image you posted, here’s the corresponding title of that post, which is what 
   is been taken as the link title. Get rid of the two occurrences of your URL.
 * I’m pretty sure any other query you have with Facebook and how it displays can
   be fixed by looking at the Developers site for Facebook, or a spot of googling.
 * Facebook have a handy debugger to help with structuring your content so that 
   it has maximum visibility to FB’s crawler.
 * [https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fjakefreeland.com%2Fthe-evolution-of-bowser%2F](https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fjakefreeland.com%2Fthe-evolution-of-bowser%2F)
 *  Thread Starter [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * (@jakefreeland)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/#post-2430957)
 *     ```
       <title>
   
       		   <?php
       		      if (function_exists('is_tag') && is_tag()) {
       		         single_tag_title("Tag Archive for ""); echo '" - '; }
       		      elseif (is_archive()) {
       		         wp_title(''); echo ' Archive - '; }
       		      elseif (is_search()) {
       		         echo 'Search for "'.wp_specialchars($s).'" - '; }
       		      elseif (!(is_404()) && (is_single()) || (is_page())) {
       		         wp_title(''); echo ' - '; }
       		      elseif (is_404()) {
       		         echo 'Not Found - '; }
       		      if (is_home()) {
       		         bloginfo('name'); echo ' - '; bloginfo('description'); }
       		      else {
       		          bloginfo('name'); }
       		      if ($paged>1) {
       		         echo ' - page '. $paged; }
       		   ?>
       </title>
       ```
   
 *     ```
       <meta name="title" content="<?php
       		      if (function_exists('is_tag') && is_tag()) {
       		         single_tag_title("Tag Archive for ""); echo '" - '; }
       		      elseif (is_archive()) {
       		         wp_title(''); echo ' Archive - '; }
       		      elseif (is_search()) {
       		         echo 'Search for "'.wp_specialchars($s).'" - '; }
       		      elseif (!(is_404()) && (is_single()) || (is_page())) {
       		         wp_title(''); echo ' - '; }
       		      elseif (is_404()) {
       		         echo 'Not Found - '; }
       		      if (is_home()) {
       		         bloginfo('name'); echo ' - '; bloginfo('description'); }
       		      else {
       		          bloginfo('name'); }
       		      if ($paged>1) {
       		         echo ' - page '. $paged; }
       		   ?>">
       ```
   
 * I now see that it is reading as follows — `<title>The Evolution of Bowser - jakefreeland.
   com | jakefreeland.com</title>` — in both my title and <meta name=”title” content
   =.
 * So, I should delete the provided code and replace it with the Facebook OG?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/sharing-posts-via-facebook/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/sharing-posts-via-facebook/page/2/?output_format=md)

The topic ‘Sharing Posts via Facebook’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 19 replies
 * 2 participants
 * Last reply from: [jakefreeland](https://wordpress.org/support/users/jakefreeland/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/sharing-posts-via-facebook/page/2/#post-2430977)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
