Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Wordpress to Facebook/Twitter

  • 24-05-2012 07:31AM
    #1
    Registered Users, Registered Users 2 Posts: 289 ✭✭


    Hi all,

    Back for some trusty advice please!

    I am looking for an automated way of transferring my wordpress posts to facebook/twitter once they go public on the site. Now, obviously you are all going to scream, search for a plugin there is 100's, and your right, however, I am looking to customise it that when it displays on facebook, it says via [my website name] at the bottom of the post on our facebook page?

    I've looked in facebook & twitter's developer area but can't seem to find what I'm looking for.

    Many thanks in advance,

    Paul


Comments

  • Registered Users, Registered Users 2 Posts: 1,082 ✭✭✭Feathers


    Hi Paul

    Haven't used much FB stuff since they switched APIs, so everything I know about it is miles out of date :) But…

    Aren't they meant to have good PHP support? Could you look at their site about the details on how to authenticate & cross-post. Once you can:

    1) write some SQL to query posts published since some date
    2) Take the content of thoses posts, tag on your sign-off line & cross-post to FB
    3) Set up a cron-job to run the script every hour/day/5m.

    Should be able to manage without a plugin specifically (if I understood your requirements right)


  • Registered Users, Registered Users 2 Posts: 16,415 ✭✭✭✭Trojan


    You probably want to edit the XML RSS feed - I'm pretty sure there's a hook you can call in functions.php. I'd estimate it's a 30-60 minute job for someone who knows what they're doing.


Advertisement