Login using Facebook


Here is the script which can be used to create a login with facebook option.

<div id=”fb-root”></div>
      <script src=”http://connect.facebook.net/en_US/all.js”></script&gt;
      <script>
         FB.init({
            appId:’YOUR_APPL_ID’, cookie:true,
            status:true, xfbml:true
         });
      </script>
      <fb:login-button>Login with Facebook</fb:login-button>

The app id can be obtained from here : http://www.facebook.com/developers/

Advertisements

Find out what font is used in a web page…


Here is one interesting thing which i found.. We can literally know what font is being used by doing the following :

First create a bookmark and in the place where you put the url to any site, you need to put this script :

javascript:(function(){document.body.appendChild(document.createElement(‘scr’+’ipt’)).setAttribute(‘src’,%20’http://chengyinliu.com/wf.js&#8217;)})();


This is a print_screen view of how to add the bookmark..

And save it and click on the bookmark.. Email me for queries regarding this..Its a great tool for everyone thats linked with web design..