Often I get frustrated with facebook groups. Lots of good and active groups are there like PHPXPerts, WordPressians, Advanced WP and lots of questions gets posted over there and answers too. But everyone knows, facebook search sucks big time. Those questions gets in blackhole (literally) over time and it’s hard to find them when you need it.
Few days ago, in a discussion in Advanced WP group, I noticed the recent posts from the group were displayed in their official site (now the feature is removed). I was like, wow! Thats what I wanted to do for groups for a long time. Later figured out, the plugin that was showing the recent facebook group posts are saving the data in a json file in it’s plugin folder and just showing them. So no searching can be done over here, you’ve to just see them. And I didn’t find any suitable plugin that imports posts from facebook groups and inserts them in a WordPress site so that those posts can be indexed and searchable.
Although I was busy, but that couldn’t stop my excitement in that particular moment. So started to write a new plugin for importing the group posts and within 2 hours, my plugin was pretty much ready. The plugin imports posts from a facebook group in every hour and inserts them as a custom post type.
What it does & doesn’t
- Imports from facebook group and inserts as
- No chance for duplication
- It doesn’t import comments (yet)
- Runs hourly via WordPress cron system
- Doesn’t import historical posts (yet)
- Adds group id, author name and ID, post link as post meta
Room for improments
- Import comments too
- Import historical (paginated) posts
If you want to contribute on this project, you are more than welcome.