When pasting the URL of the Drupal site in question as a facebook message, the message, title and image that are being fetched from that drupal site are not the ones that are supposed to come up. From what I gather, Facebook module and OpenGraph stuff seems needed in order to figure this out which seems overkill for this problem...

The homepage of the Drupal site is a view with some blocks in the sidebars. When you paste the URL of the site (www.mysite.com) in a facebook message, it fetches some text out of a block, and an image from some other node. Instead, I want to be able to choose which text it fetches from the site.

The answer to this question How to change facebook og:image to post image link? seems to come close and is telling me I need to use the metatag module. It doesn't explain how to go about it, but I installed the module and changed some of the values in the configuration, but didn't have any effect. Also flushed caches many times.

Also installed the fb module, I read the README.txt from the fbmodule from the beginning until the end (as asked).

I have a feeling like I don't necessarily have to get a degree in the the huge Facebook API/Opengraph rabbithole in order to get this sorted, do I? I mean, there has to be one place where you can just determine when the text, image and title should be on the wall without too much of a huge construction around, no?

  • Are you sure Facebook has not cached your page. Can you try with a different link to test this.
    – Joe
    Oct 26, 2015 at 21:39
  • Haven't come across facebook's own cache yet but looking into it now... A url from a different page simply fetches content from that different page. Though more relevant since it's a basic page not a view of course.
    – Immers
    Oct 26, 2015 at 21:46
  • What I mean is I have run across this before when posting from soundcloud. I changed an image on a track and then reposted onto facebook but it would not show the new image. I had to change the url to the track for it to pull the new image
    – Joe
    Oct 26, 2015 at 21:49
  • Check the source of the page - if the og:image etc tags are there, you have the metatags module configured properly. If you have, it'll be an issue at Facebook's end (most probably cache)
    – Clive
    Oct 26, 2015 at 22:04

2 Answers 2


You have a two part question here.

One, the best way to deal with OG info on your site is with the Metatag module:

The Metatag module allows you to automatically provide structured metadata, aka "meta tags", about a website. In the context of search engine optimization, when people refer to meta tags they are usually referring to the meta description tag and the meta keywords tag that may help improve the rankings and display of a site in search engine results. In addition, the module provides support for meta tags (Open Graph Protocol from Facebook, Twitter Cards from Twitter) that allow control of how content appears when shared on social networks.

When you install and enable this, you can customize what OG info appears where, and it has full token support for dynamically creating the meta elements pages on a page's content. You can also hardcode values for specific cases, like the home page.

The second part of your question has to with the fact that FB heavily caches page contents. The provide a debug tool for dealing with this:


In addition to seeing exactly what OG info it is pulling in about a URL you provide, it has the side effect of clearing the cache for that particular URL.


First of all I would check the Facebook Guide to Sharing for Webmasters, which will tell you exactly which metatags you should be using.

Now make sure you have the metatag_opengraph module enabled and edit the property you want in admin/config/search/metatags. Be aware that editing the Global OG settings will set the image, title etc. for ALL of your site.

Finally do not forget that the content type MUST be set to 'article' for Facebook to find it, as it says in the Guide.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.