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.
now run the following command to install hybridauth
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”
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
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
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
I have created a Flickr Portfolio application which can be linked to your Flickr account, display all your latest Flickr photos and incorporate Facebook like and comments with it. This application is small, simple and code is well formatted so that you can edit it. All the instructions are provided in the readme.txt file and … Continue reading A tiny, open source Flickr Portfolio application
Long story short, I was developing a Facebook page application which runs from inside a page tab. Such applications runs inside an iframe on Facebook Fanpage. Everything was going perfectly, until, we started checking it in IE!! The symptoms were simple, PHP Session is not working when user logs in. The application works perfectly in … Continue reading Story about Blue E, iFramed Web Application, Wastage of 6 hours, Missed Lunch and what not!
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
It started in a funny way rather than a typical project plan, and finally turned into an important project for us in Leevio. Everyone in our team was so much excited to release our first flagship product, a web based service (mashup you can say) we called MiproApps. It is a visual designing tool for … Continue reading MiproApps – "The Release" and "The Story Behind"
It was a nice evening with more than 100 tech people and I really enjoyed it. As I’ve said over there, you can download the presentation from the following link. It is a zip file containing a powerpoint 2007 slide of today’s session. Download: Developing Application on Facebook Platform Thank you for coming. Continue reading Beginning "Application Development on Facebook Platform"
facebook cookbook, what is that? well first thing first – this is not something related with “facebook cookbook” published by o’reilly. usually you know cookbook is a term commonly used to describe books which focus mainly on problems and their solutions. these cookbooks contains quick solutions of common and frequently used programming problems. so i … Continue reading started writing on facebook cookbook blog