Skip to content

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

License

Notifications You must be signed in to change notification settings

GunnJerkens/gj-social

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gj-social

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages