CakePHP Social Media Plugin
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead, 4 commits behind predominant:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

CakeSocial CakePHP Plugin

The CakeSocial plugin for CakePHP allows for simple integration of social media into your CakePHP application.


  • ShareThis for social link sharing and publicising. (Includes 44 social networks, including: Twitter, Facebook, MySpace, Slashdot, Reddit, and more)


CakePHP Version

This plugin is built for CakePHP 1.3 and above.

Upgrade from CakePHP 1.2 to CakePHP 1.3 takes about 5 minutes, checkout the awesome migration guide.


Downloading an archive

If you downloaded a tar.gz, tar.bz2 or zip file, extract the contents of the archive to your applications /plugins directory.

The result will be a cake_social directory under your plugins directory.

Using a git submodule

Navigate to the root of your application, and add the CakeSocial plugin as a submodule with the following git command:

git submodule add plugins/cake_social
git submodule init
git submodule update


The simplest method of usage is to include each helper you want to use on your AppController class.

If you do not have one already, create the file app_controller.php in the root of your application, and add the following:

App::import('Helper', 'CakeSocial.ShareThis');

class AppController extends Controller {
	public $helpers = array(
		'CakeSocial.ShareThis' => array(
			'publisher' => 'my-publisher-id',

Now you can just display the widget on any page with the following CakePHP view code:

echo $this->ShareThis->display();


Note: The ShareThis helper doesn't require the Session helper, its just included to show that other helpers go in there also, and to help copy+paste help vampires who after migrating to CakePHP 1.3, will get SessionHelper errors if they don't include it.

Comments, Suggestions, and other...

I'd be more than thrilled to hear anyones experiences with this CakeSocial plugin.

If you have suggestions, enhancement requests, or bugs, please let me know.