facebook

Load several instances of your Tweet, Like and +1 buttons asynchronously

Posted by Danny Herran on Sep 22, 2011 in Social Networking | No comments

In one of my blogs, I was having issues with page loading because the social buttons were locking the page when they were being rendered. This is a serious issue for the visitor, since most of them just want to get to the info quickly. This issue is very noticiable on blogs, where you have dozens of these little buttons spreaded across your index page. Lets see how to fix it.

Facebook PHP SDK and CodeIgniter for basic user authentication

Posted by Danny Herran on Feb 24, 2011 in Backend | 211 comments


With CodeIgniter 2, plugins are no longer an option. Usually you would just add the Facebook PHP SDK as a plugin and you were good to go, but now, you need to make a little modification to the SDK in order to use Facebook Connect on your CodeIgniter application. Lets start by explaining what is, how to get started and how to authenticate an user using the Facebook API.