WP Manifestindependent plugin directory
manifest / social / gj-social

GJ Social

WordPress Plugin to pull social media data into a json file for usage in themes

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/gunnjerkens/gj-social/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Small WordPress plugin that returns an object of your personal Facebook, Twitter, Instagram, or Tumblr to use in your theme. It is stored in the database and allows you to call a custom number of posts and set a cache value for the content (so your user isn't waiting on an API call every page load). Default cache is 60 minutes and the default number of posts is 10.

usage

For the networks you want to access data from just fill in the required fields and instantiate the class in your code.

$gjSocial = new gjSocial();
$gjSocial->display($network, $count, $time, $fields);
variable expected (default) options
$network string twitter, instagram, facebook, tumblr
$count int (10)
$time int (60)
$fields array (string) requested fields (facebook and instagram only)

tips

Each social site requires different ways to access their API. Here is my feeble attempt at including a couple guides to help get the keys needed to make this work.

Facebook

Facebooks Graph API

Instagram

This also uses the Graph API.
Getting Started

dependencies

Facebook SDK for PHP Twitter PHP API

requirements

PHP 5.4

License

MIT