O'Reilly logo

Yii Project Blueprints by Charles R. Portwood II

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sharing on Twitter with HybridAuth

Since our application doesn't have a large following yet, it's important to enable our users to share content that they generate on our site to other places. A great way to spread the word about a particular site or service is to take advantage of Twitter. One way to integrate with Twitter is by utilizing their OAuth API. This will allow us to authenticate as a given user and post content on their behalf, at just a click of a button.

To do this, we'll be taking advantage of HybridAuth. HybridAuth is an open source library that allows developers to integrate with multiple third-party social networks, and enables developers to make their application more social. For our purposes, we're going to utilize HybridAuth ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required