Title: Default image for publicize  module
Last modified: August 21, 2016

---

# Default image for publicize module

 *  Resolved [Amit Sonkhiya](https://wordpress.org/support/users/amitaits/)
 * (@amitaits)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/)
 * Is there any way to **set an image as default image** to publish the post on 
   social networks if the post has no featured image or any image attached to the
   post and inserted.
 * Like the WordPress SEO by yoast plugin offers to provide an image url that is
   used if the post/page being shared does not contain any images.
 * I don’t want to use any other image in the post (not attached but perhaps linked)
   or any image not related to page/post but available in any widget there..
 * [http://wordpress.org/plugins/jetpack/](http://wordpress.org/plugins/jetpack/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/#post-4570752)
 * Hi,
 * You can have a look at how we pick an image for our OpenGraph tags here:
 * [https://github.com/Automattic/jetpack/blob/master/functions.opengraph.php](https://github.com/Automattic/jetpack/blob/master/functions.opengraph.php)
 * and
 * [https://github.com/Automattic/jetpack/blob/master/class.jetpack-post-images.php](https://github.com/Automattic/jetpack/blob/master/class.jetpack-post-images.php)
 * As you can see, it’s quite complex. Luckily, we have these 2 posts to help you
   out:
 * [http://jetpack.me/tag/open-graph/](http://jetpack.me/tag/open-graph/)
 * The first one in particular should suit your purposes:
 * [http://wordpress.org/support/topic/default-image-for-publicize-module?replies=1](http://wordpress.org/support/topic/default-image-for-publicize-module?replies=1)
 *  [Mercifull](https://wordpress.org/support/users/mercifull/)
 * (@mercifull)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/#post-4570757)
 * I tried using this code but its still using the blank image
 *  Plugin Contributor [Richard Archambault](https://wordpress.org/support/users/richardmtl/)
 * (@richardmtl)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/#post-4570820)
 * Can you tell me exactly what you tried and how? Please post your functions.php
   file to pastebin.com so I can take a look. Thanks!
 *  Thread Starter [Amit Sonkhiya](https://wordpress.org/support/users/amitaits/)
 * (@amitaits)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/#post-4570950)
 * Hi
 * I had an image as link in widget which was being posted on facebook along with
   the post. I removed that image as it was worthless later.
 * I visited the links you provided and they were helpful too. I will use them whenever
   i will need in future. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Default image for publicize module’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Amit Sonkhiya](https://wordpress.org/support/users/amitaits/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/default-image-for-publicize-module/#post-4570950)
 * Status: resolved