Integrate Social Sign On in your PHP apps using HybridAuth

nt.social.network.big_

Integrating social sign-ons in a web application can become a tedious task because you need to take care of different endpoints, credentials and finally manage the oauth dance to get the access token. However, using HybridAuth package, this task can be easy as pie 🙂 Let’s have a look

In this example I will show you how to connect to Facebook and Twitter using HybridAuth. So you need to create two applications in Facebook and Twitter each. Save those app’s id and secret somewhere because we will need that in a minute.

Step 1: Install the Package via Composer

Composer is an excellent package manager for PHP apps. Let’s use that to install HybridAuth in our current projects scope. Add a composer.json file in your project path, or update it with the following contents if it already exists. But before that, make sure that you have composer installed in this machine.

{
    "require": {
        "hybridauth/hybridauth": "3.0.0.*@dev"
    }
}

now run the following command to install hybridauth

composer install

Step 2: Connect with Facebook

Let’s make a good use of this HybridAuth. This time we need to create two files, fb.php and hybrid.php. Make sure that your facebook app’s callback url points to this hybrid.php. FOllowing is the code of fb.php Continue reading “Integrate Social Sign On in your PHP apps using HybridAuth”

Here comes Postman, the tiny little app that connects Flickr and Facebook Groups together

We were working to develop a new utility web application for last couple of days which will help us, the photographers, to easily share photos from our flickr photostream to multiple Facebook groups that we are subscribed to. There was a reason why we wanted to develop this app in the first place. Every time … Continue reading Here comes Postman, the tiny little app that connects Flickr and Facebook Groups together

Massive security flaw in Facebook and why should they fix it immediately before I take your girlfriend out to dinner tonight

Ok, Facebook Groups has a huge security flaw by which any group member  can pretend to be anyone else in that group, and post in the group on behalf of that user. It is FATAL. I’ve reported to Facebook and I hope they should take immediate action for it. I had disclosed it in details … Continue reading Massive security flaw in Facebook and why should they fix it immediately before I take your girlfriend out to dinner tonight

building a nice image gallery like pinterest/friendsheet using facebook graph api and LightBulb

Pinterest has gained lots of attention lately and became popular in the photographer’s and designers community from the very beginning. And once something is popular, people copy (and sometime with improvement) their beautiful user interface ideas into their own project. Last week i’ve seen quite a traction when friendsheet was released. They allow you to … Continue reading building a nice image gallery like pinterest/friendsheet using facebook graph api and LightBulb

Working with Facebook events using Graph API, JS-SDK and PHP-SDK – part 1

Graph API from Facebook is a very interesting project based on open graph protocol. Facebook is gradually setting Graph API as the standard and deprecating the use of their old REST based APIs. To start working with Graph API doesnt need an extensive knowledge on how Facebook API works but its always good to have … Continue reading Working with Facebook events using Graph API, JS-SDK and PHP-SDK – part 1

MiproApps, TechCrunch Review and quick to-dos for your Facebook page

MiproApps got a nice review on TechCrunch today. Orli Yakuel from Go2Web20 has written this comparison based review for 12 services to design your pages with Miproapps—The newest service around, Miproapps allows users to design a fan page by simply dragging & dropping elements to the center of the page. I found it to be … Continue reading MiproApps, TechCrunch Review and quick to-dos for your Facebook page