We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48381
    • 21 Posts
    Hi,

    My client has the following request:
    Pull all their posts from Twitter, Instagram, facebook, youtube (they post almost daily)
    And in the manager, the admin will be able to choose what to publish on the site.

    I know how to pull and publish all posts from social media with their dedicated APIs - but this is funneled straight to my FE JS, without allowing the admin to select what will be published.

    I also know how to create posts using Gallery, Articles, etc.. and keep them unpublished until they are reviewed.
    I have no clue how to automatically create an unpublished gallery item from a social media post.

    Any ideas will be great,
    Thanks!

    This question has been answered by lkfranklin. See the first response.

      • 17301
      • 932 Posts
      I think it would be easier if you reversed the service to say if a post was allowed to publish to social media from the website, rather than the other way around. [ed. note: lkfranklin last edited this post 6 years ago.]
        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 3749
        • 24,544 Posts
        To follow up on LK's suggestion, the Notify extra will let you easily post to Twitter and Facebook (but not Instagram) when editing a resource. It also will send an email announcement to subscribers about new and updated pages, but you don't have to use that feature.
          Did I help you? Buy me a beer
          Get my Book: MODX:The Official Guide
          MODX info for everyone: http://bobsguides.com/modx.html
          My MODX Extras
          Bob's Guides is now hosted at A2 MODX Hosting
          • 48381
          • 21 Posts
          thank you for your answers, but I'm afraid it is not an option in this case.
          the client already has a large and working infrastructure and it is one of their conditions for the website Pitch.

          Is a possible correct option to look for a proffesional PHP MODX developer to write a plugin for me?
            • 3749
            • 24,544 Posts
            Is a possible correct option to look for a proffesional PHP MODX developer to write a plugin for me?

            Yes, or a snippet, or a cron job. I think it would be fairly expensive.

            One way would be to use cURL or an API for the social media source to grab the information and write it to unpublished resources. The trick would be to avoid putting the same information in multiple resources. If the source provides an ID, date/time, or other identifier for each item, you could store that in an unused resource field (introtext or description, for example), and check that before creating the resource.
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 17301
              • 932 Posts
              Feel free to drop me an email with a brief, proposed deadline and budget for a quote - [email protected]

                ■ email: [email protected] | ■ website: https://alienbuild.uk

                The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
                • 48381
                • 21 Posts
                BobRay, your answer makes sense to me but probably requires PHP experience.
                I reached out to LK for a quote.
                Thanks.
                • discuss.answer
                  • 17301
                  • 932 Posts
                    ■ email: [email protected] | ■ website: https://alienbuild.uk

                    The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.