Solving problems with Facebook showing the wrong image

Often when posting a link on Facebook, a picture and description will show up in the FB post. However somtimes the image will not be the what you expected or wanted. This is especially a problem i you use som kind of auto-posting feature on website, such as JetPack for wordpress or similar services, because in these cases you do not see the post… unless you actively visit you Facebook page and check.

Facebook or other social medias, like Twitter and Google+, rely on meta data to show the image. Google prefers, but Facebook rely on Opengraph tags.  In CMS’s like WordPress these tags are often added automatically by the theme or various plugins. Sometimes the problem is caused by multiple tags, and in this case you have to figure out which plugins and themes does what. You can start by looking at the source code and seach for “og:” which will show you the Open Graph tags. You have to make sure the correct image is tagged before you can solve problems with links already posted to your FB page.

Once you know your  website is properly tagged, there is a way to force Facebook to use the correct image. All you have to do is follow these steps:

Paste the link to page of your website into the Facebook Open Graph Object Debugger and click the “Fetch new scrap information button”:

This forces Facebook to clear the cache for your webpage, however for the actual posts on you FB page to reflect the change, you have to “refresh the share attachment” on the post that shows the wrong image.

First click the date on your post


This takes you to a page with only this one post. Next click the little arrow in the top right hand corner and choose  “refresh the share attachment”


Note that the “refresh the share attachment” only shows up in the post page view, i.e. you cannot do this from the timeline/pagefeed view

If this does not set the right image, you have either forgotten to Fetch new scrape information in the Debug tool above, or you page is not tagged with the correct Opengraph tags

My list of super useful WordPress plugins

WP Social SEO Booster

Takes care of all the microdata and other things that are needed to ensure your post looks right on various social networks

Wordfence Security

A security plugin that enhances a number of things and prevent several different hacks. I have had problems with other popular security plugins, so I now only use Wordfence. There is also a caching functionality in Wordfence, but do not have to turn it on if you already have another caching plugin, although it is quite effective considering the super simple setup.

UpdraftPlus – Backup/Restore

A really good backup plugin that can also backup to various third party services such as Dropbox, Google drive, Amazon and other. It is the most reliable free backup solution I have tried so far

WP Remote

This is absolutely one of my favourite services. This allows you to monitor and update multiple sites at once and have saved me so much time. Another advantage is that you do not risk missing an update of one of your sites

Regenerate Thumbnails

This is not a plugin I use very often, but it is indispensable when I need it. It regenerates the image sizes which is very useful when you change theme or make changes to an existing theme

WordPress SEO by Yoast

This one is a very popular SEO plugin, so you probably already know about it… just remember to actually use it and create some killer Titles and meta descriptions.

Delete Custom Fields

This is one of those plugins that most will probably never need, but what it does is delete old custom fields that you no longer use.

Anti-email Spam

This plugins simply automatically obfuscates any email address using either HTML entities or JavaScript. It is far from the most advanced way of doing it, but it is compatible with just about everything, and it fools most of the harvesting bots.

Widget Context / Widget Logic

Both of these plugins are used to control which pages a widget will be shown on. I use both of them on various sites.

WP Htaccess Editor

As the name suggest this plugin lets you edit the Htaccess file directly from the WordPress backend. It also includes an option to backup the Htaccess file before you make changes. Remember to be very careful when messing around with the htaccess file.

W3 Total Cache / WP Super Cache

I use a caching plugin all all my sites. My favourite is W3 Total Cache as it is very comprehensive, however I have had compatibility problems on some sites as it prevented proper detection of mobile devices. On these sites I have used either WP super cache or for some simpler sites just the built in caching in Wordfence.


This is the commentary spam plugin that comes with WP out of the box. I usually do not activate until spam actually becomes a problem. For some reason i have sites that never get any spam, and others that get insane amount of spam comments every day.

Premium Plugins

Gravity Forms

Hybrid Connect

Genesis specific plugins

The following are plugins that are made especially for the Genesis theme framework

Genesis Simple Hooks

Genesis Simple Edits

Genesis Translations



Show the modified date on WordPress posts

There are many good reasons to show date of the last update to an article or post in WordPress. For one thing it shows the reader that the article is not just old and outdated, but actually kept fresh and relevant, but just as important it shows the same thing to the search engines.

There are a lot of instructions on how to show the modified date of a post instead of the creation date  when it comes to regular WordPress sites, but for sites based on Genesis themes it is a little more difficult to find a good guide. Luckily Brad Dalton from  have published a code snippet that works very well.

The should be added to functions.php and will create a [modified_date] shortcode, which you can also use in various widgets such as the “Genesis – Featured Posts” and in the Simple hooks plugin, which I also highly recommend.

You can see the code below, or use the link above to visit the original article where you can also see how to achieve the same result if you are not using Genesis

How to hack a password protected Word document

If you need to edit a Word 2010 document that has been protected against a editing with a password, all you have to do is this.

  • Save the document as an XML file
  • Open the XML file in Notepad or any other text editor
  • Look for the code that looks something like this:

w:documentProtection w:edit=”forms” w:enforcement=”1″ w:cryptProviderType=”rsaFull” w:cryptAlgorithmClass=”hash” w:cryptAlgorithmType=”typeAny” w:cryptAlgorithmSid=”4″ w:cryptSpinCount=”100000″ w:hash=”QtaIYzaqdsNY6+rDiZireRTIcR0=” w:salt=”Nm32FUBbspiQM+Rpm9VWIg==”

  • Delete it
  • Save the changes to the XML file
  • Open the XML file again in word, and save it as a word file again

It should also work in other versions of Word, but I only tested it with 2010 files

MILF – Moro Islamic Liberation Front

I suspect very few westerners think of a militant Islamist group when they hear the acronym MILF, but there is in fact a group in the Philippines called the Moro Islamic Liberation Front, or MILF for short.

To be fair the group probably thought up the name before the other more well known meaning of MILF came to be. The group was formed in 1981 when some members seperated from the Moro National Liberation Front group.

I highly recommend bringing up this group in serious discussions. It is very entertaining to watch peoples reactions when you keep saying milf during a serious discussion about politics, religion, terror or other important subjects

If you try to Google MILF the first million results will be anything but the Moro Islamic Liberation Front, so here is the links to the Wikipedia page about the MILF group as well as the more popular meaning of the acronym

The group:
The other thing:

Ajax.php causing high load on the server

If you are running a wordpress blog you might experience a very high number of “hits” to “/wp-admin/admin-ajax.php”. This can cause a very high load on the server, and if you are running your blog on a shared hosting platform, your hosting provider might even disable the script.
To resolve this you can make the changes below to ensure the script exits quickly if no action is supplied with the file request.

Change this
15 define(‘WP_ADMIN’, true);
17 require_once(‘../wp-load.php’);
19 if ( ! isset( $_REQUEST['action'] ) )
20 die(‘-1′);
22 require_once(‘./includes/admin.php’);

To This
15 define(‘WP_ADMIN’, true);
17 if ( ! isset( $_REQUEST['action'] ) )
18 die(‘-1′);
20 require_once(‘../wp-load.php’);
22 require_once(‘./includes/admin.php’);

For more info see this page:

or this

WordPress post expire or category change

I have found the following plugins for wordpress that will enable an expiration date on a wordpress post. Some can also change the category, or at least be modified to add that functionality.

None of these are perfect so if you know of a better way to automatically change posts category on a certain date, please comment.

“Auto Delete Post” can, despite the name be setup to change the category instead… without changing any code.

“Post Expirator” can only delete the post, or set the status to Draft, however according to this forum post, a simple code change will enable category change.

“Atropos” Will also only delete the post, however here is modified version that will allow category change.

Customize exchange 2010 theme

To create your own theme for Microsoft Exchange 2010 you can copy the files from one of the existing themes and customize them to you liking. And easy way to do it is to copy the theme that most resembles your desired outcome, end then simply customize the header image, and preview thumbnail.

When you are done simply create a new folder in the themes directory and copy your customized theme.

The theme file can be found in here “…\V14\Client Access\OWA\<version number>\themes”

E.g. “C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\Owa\\themes”

You can also customize the sign-in and sign-out pages which can be found here:

“\V14\Client Access\OWA\<version number>\themes\resources”

More info here:

Ignorance more frequently begets confidence than does knowledge (Charles Darwin)