WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Page Publish
[resolved] Default Post to Facebook - change to Yes? (24 posts)

  1. Ken Soszka
    Member
    Posted 3 years ago #

    Hi, how can I make the default for this great plugin be "Yes", meaning that every new post would automatically be set to post to facebook as opposed to having to manually check the checkbox? Thanks!

    http://wordpress.org/extend/plugins/facebook-page-publish/

  2. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    A good idea for improvement, will be integrated into the next update (the feature list grows quite fast).

  3. Ken Soszka
    Member
    Posted 3 years ago #

    Ok great, thanks! Is there a way that I could hard-code it temporarily? I am working with an automatic blog, and I need this to be, well, automatic. Thanks again, Ken

  4. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, you can easily hardcode it. Simply do the following:

    1. Click "Editor" in the "Plugins" menu and open "facebook-page-publish/fpp_index.php".

    2. Replace <label for="fpp_post_to_facebook">Post to Facebook </label><input type="checkbox" value="1" id="fpp_post_to_facebook" name="fpp_post_to_facebook" /> with <label for="fpp_post_to_facebook">Post to Facebook </label><input checked="checked" type="checkbox" value="1" id="fpp_post_to_facebook" name="fpp_post_to_facebook" /> (in function fpp_render_post_button())

  5. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Better solution: Simply update the extension - it is now a the default setting (will be customizable in the next major version).

  6. Ken Soszka
    Member
    Posted 3 years ago #

    Update the extension? Not sure what you mean by that :-) Do you mean update the plugin? Thanks!

  7. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Plugin, of course. Unless you happen to use a french wordpress installation - they have a translation for everything ;)

  8. Ken Soszka
    Member
    Posted 3 years ago #

    Ok, I had updated to 0.2.2 right before I changed the code - so I probably messed it up. Is it 0.2.2 that I want? I will just uninstall and reinstall to make sure...

  9. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    The updated version is 0.2.2. But don't worry, the next major update (coming soon) will revert your hardcoded changes - until then, it should be working fine even with your changes.

  10. Ken Soszka
    Member
    Posted 3 years ago #

    Ok, I took a post that was scheduled and changed the scheduled time so it posted a couple minutes later. So far nothing on Facebook but I think they are usually delayed a bit - I'll let you know.. Thanks, Ken

  11. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    You made me aware of another bug: scheduled posts were not handled the way they are supposed to.
    I fixed the current version 0.2.2 (no update) to handle all kinds of posts correctly, but if you don't want to wait for the official update, you have to reinstall the plugin.

    The delay wordpress-facebook is usually short (seconds to 1-2 minutes).

  12. Ken Soszka
    Member
    Posted 3 years ago #

    Well, it doesn't work with my automatically scheduled posts - but it works with a manually scheduled post, so there must be something in my custom code that causes it not to work. Would you be interested in taking a look at my code? I have also tried a plugin similar to yours called FT FacePress II, and that one creates two identical FB updates for each post! Must me be my code I bet.

  13. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, I am interested into looking at your code. Can you post/link the complete code / modification you use so that I can reproduce the problem on my own system?

  14. Ken Soszka
    Member
    Posted 3 years ago #

    Actually now I see there are several updates that the developer made to the code that I did not know about. It was a plugin, I made some changes/fixes to it awhile back and then added it to my function.php of my child theme. This is the plugin:

    [HUGE chunk of code moderated as per the Forum Rules. Please use the pastebin]

  15. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    I found my plugin to be the cause for this malfunction. Currently, only posts send from the admin panel are considered for facebook-publishing. The bugfix will be released with the next major update (hopefully today).

  16. Ken Soszka
    Member
    Posted 3 years ago #

    Wow, ok, thanks for letting me know. I look forward to the release!

  17. Li-An
    Member
    Posted 3 years ago #

    Well, as I want to publish only one category of posts, how to change this default behaviour back to ... OK, just change the code. Maybe it could be simpler to get an option for the user: "do you want the box to be checked or not by default".

  18. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Li-An,
    your proposition has been integrated into aforementioned update wich will be released when I am done testing (requires more time than I thought).

  19. Li-An
    Member
    Posted 3 years ago #

    Thank you. When I changed the code, it seems to be you have prepared it to include the function ?

  20. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    The new version 0.3.0 is released.

    @ksoszka: Do these two plugins work together now?
    @Li-An: Mon code est toujours en avance sur son temps ;). Choose "posts from selected categories" or "nothing" as default publishing action.

  21. Li-An
    Member
    Posted 3 years ago #

    Thank you for the category option :-)

  22. Ken Soszka
    Member
    Posted 3 years ago #

    Hi, doing some testing this evening, will let you know. And yes, thanks for the category choices - I was going to ask for that too!

  23. Ken Soszka
    Member
    Posted 3 years ago #

    Happy to say all seems to working very well - THANK YOU! I can now replace the other plugin that I was using, it was causing double-posts or not posting at all.

    Thanks again - do you have other cool plugins that we might like?

  24. mtschirs
    Member
    Plugin Author

    Posted 3 years ago #

    Glad to hear that the plugin is useful! However it is the first and only one I decided to make public (since I found no existing equivalent for my intended purpose).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic