Solved

Facebook’s Attached Links and Page Previews not working on wordpress blog

Posted on 2010-11-23
1
397 Views
Last Modified: 2012-05-10
I need help resolving something. I have a wordpress blog (cannot list) that when you paste a link from an article into facebook it pulls the main sites description, image, NOT the post articles. It does pull the proper title and permalink, but NOT the description and image.
Here is what i got so far, basically, I need to know how use wordpress codex to pull the description and image from a particular post. Here is what i got so far which is in the header.php file of my wordpress theme
<meta property="og:type" content="article" />
<meta property="og:title" content="<?php the_title() ?>"/>
<meta property="og:url" content="<?php  the_permalink() ?>" />
<meta property="og:description" content="<?php echo urlencode(get_permalink()); ?>"/>

Open in new window

0
Comment
Question by:adrian7474
1 Comment
 

Accepted Solution

by:
adrian7474 earned 0 total points
ID: 34201159
Solved my own question. Found this great article for those who might have same problem.
http://www.werewp.com/tutorials/how-to-add-like-button-to-wordpress-pages/
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The purpose of this video is to demonstrate how to integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now