Default Publish this on Facebook?
-
Hi there,
GREAT plugin that does exactly what i needed,
but, if I uncheck the “Publish this on Facebook?” it’s still posted on facebook, which i think should not happen.So here is the line (51) in new-post-update-status.php:
$config['fp_publish_this'] = isset($_POST['fp_publish_this']) ? $_POST['fp_publish_this'] : "on";
and if you (just like me) want to don’t publish post on fb when the box is unchecked, simply replace the “on” with “” like so:
$config['fp_publish_ = isset($_POST['fp_publish_this']) ? $_POST['fp_publish_this'] : "";
I hope that helped someone, because it’s a bit pain in the ass removing articke from FB page after each update of article.
EDIT:
One little update, to preserve publish on sheduled articles, you need to switch line 51 and 53 and add: $_POST[‘fp_schedule_this’] condition to $config[‘fp_publish_this’]:$config['fp_schedule_this'] = isset($_POST['fp_schedule_this']) ? $_POST['fp_schedule_this'] : "no"; $config['fp_publish_this'] = isset($_POST['fp_publish_this']) ? $_POST['fp_publish_this'] : isset($_POST['fp_schedule_this']) ? "on" : "";
- The topic ‘Default Publish this on Facebook?’ is closed to new replies.