Jabran Rafique edited this page Apr 10, 2015 · 6 revisions

HomeSetup

Making the socialmedia setup most convenient is one of the core part of it's development. It is quick and straight forward to setup and running socialmedia in a project.

Add socialmedia to a web project

<script
	src="//cdn.jsdelivr.net/socialmedia/latest/socialmedia.min.js"
	type="text/javascript">
</script>

Initialize required service(s)

<script>
	var facebook, twitter, gplus, pinterest;

	// Facebook *
	facebook = new Socialmedia.Facebook({
		appid: '0123456789'
	});

	// Twitter
	twitter = new Socialmedia.Twitter();

	// Google Plus
	gplus = new Socialmedia.GooglePlus();

	// Pinterest
	pinterest = new Socialmedia.Pinterest();
</script>
* \* Facebook setup requires [Facebook APP](https://developers.facebook.com) ID. * [Further reading & Example](http://jabran.me/projects/socialmedia-js/)

Next: API Reference

Analytics

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.