Solutions for extracing single facebook, twitter, youtube and pinterest posts into one individual wordpress post
I have been playing around with this for quite some time and to be honest, I am at a loss for how to approach this.
What I am attempting to do is extract social posts from my clients different social networks and bring them into a word press site. Problem is that most methods, plugins and premium modules extract all social content into one page/post or custom post type. Well this may work for some, my requirements are that each social post is automatically extracted into it's own unique custom post type. So rather than all facebook posts showing up in one post (which is simple) each one, as they are posted, should be pushed to it's own custom post type (e.g. custom post facebook). So if there are 10 facebook posts, there would need to be 10 different facebook custom posts in wordpress.
Reason being is the grid system I am using (essential grids by theme punch) extracts a pages html, images, meta, etc. and formulates a grid out of them. This works well for almost everything except for extracting social feeds.
Without having each any every social post extracted into it's own post in WordPress, the desired affect of having the social posts in the overall grid feed cannot be realized.
So my question is, has anyone achieved something similar and if so, how was it approached? I am not requiring all the technical details if you do not want to provide them (if you have a premium module that achieves this I would be happy to purchase it), however a gentle nudge in the right direction is all that I need and will be appreciated.
Thanks,
IcedQuick
Solutions
It's going to be a huge task. Maybe there are plugins that deal with one or another, but all of them at once, I doubt it...
You'll have to:
- Use the API of each site.
- Create an initial task that will pull all available data and build the past posts.
- Create a task that will check for new data and create new posts.
- Use Ajax to make the API calls so the user has some kind of feedback while the requests are made and responded to.
Here's a Flickr example (if we use
per_page=100
it takes a while to perform): Saving JSON or XML API response to a Wordpress database.
And here an Apple Store example that has a cron job to check regularly for changes in the public data: Website widget to display Apple App store price drops?