Shamoon
Shamoon

Reputation: 43559

How can I pull content from Twitter, Facebook and Instagram as post items in WordPress?

There are lots of plugins that will get Twitter / FB content and display them. I, however, want the raw content so I can style it myself. I don't want it to spit out a ul or whatever the formatting is by the plugin, rather I just want the raw content.

Is there a plugin or quick way to do this?

Upvotes: 1

Views: 2238

Answers (2)

Francis Yaconiello
Francis Yaconiello

Reputation: 10939

I just cooked up a quick plugin to get you started.

https://github.com/fyaconiello/WP_Social_Network_Posts

what it does:

  1. creates a custom post type: "social network post"
  2. has a setting page for adding your facebook app_id, secret, and facebook name/id for the account timeline
  3. has a cron file that will imports/updates all posts from the facebook user's timeline into posts when php PATH_TO_PLUGIN/cron/facebook.php is run

I didn't use wordpress scheduled events because shared hosts seem to timeout long running processes. Its better to register the sync command with the OS's cron manager. That said if a user wanted to add it as a scheduled event, the function to sync is part of the main plugin file and can be registered as an event in the epty activate/deactivate methods of the plugin.

TODO:

  1. Create fields/settings to store and API information for twitter
  2. Create the twitter backend / sync process (model it after the facebook one)

EDIT

Social network posts can be accessed from the admin sidebar

enter image description here

Upvotes: 5

Maruf Alam
Maruf Alam

Reputation: 19

No Idea about instagram. But check out this plugin

http://wordpress.org/extend/plugins/oa-social-login/

It has many features. Twitter,Facebook,Linkdin,OpenID etc

Upvotes: -2

Related Questions