Tag: social network

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.

[sourcecode language=”javascript”]
{
"require": {
"hybridauth/hybridauth": "3.0.0.*@dev"
}
}
[/sourcecode]

now run the following command to install hybridauth

[sourcecode language=”shell”]
composer install
[/sourcecode]

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 (more…)

hot in hottDhaka

I’ve recently came by hottDhaka developed by hott media. it’s basically a community driven social networking application focusing currently on restaurants. if you want to check a new hott dish or sizzlings, or a new restaurant to spend your evening, you should first check hottDhaka for a review. hottDhaka features excellent reviews, sample copy of menu available from each of these restaurants and provides you a nice interface to share your opinions. may be making friends with similar taste? why not!

overall i really like this site for their slick look-n-feel, soothing colors and nice ui. i must say its a nice addition to bangla community. cool! they are still in beta and i hope the final release is coming with some real cool features.