facebook-connect on Blogger

There are very few and specific changes that are to be done to enable the facebook-connect service on your blog in blogger.com. 

  1. Create a new application at http://www.facebook.com/developers/createapp.php
  2. Enter a name for your application in the Application Name field and “save changes”
  3. Copy the API Key
  4. Click on the Connect tab and set Connect URL to “Your_Blog_Name.blogspot.com” and “save changes”
  5. Login to Blogger and go to Blog Dashboard> Layout > Edit HTML
  6. Look for : 
  7. Replace it with: 
  8. Look for : 
    • </head> tag
  9. Insert just before </head> :
  10. Look for :
    • </body> tag 
  11. Insert just before </body> :
  12. Save changes, you are now ready to add Facebook connect to your blog
  13. Go to : Add gadget and select html/javascript
  14. Face-book connect button: 
    • <fb:login-button autologoutlink=”True” length=”short” background=”white” size=”large”></fb:login-button>
  15. Profile picture : 
    • <fb:profile-pic uid=”loggedinuser” facebook-logo=”true” linked=”false”></fb:profile-pic>
  16. Username :  
    • <fb:name uid=”loggedinuser” useyou=”false”/></fb:name>
  17. Live-stream box : 
    • <fb:live-stream event_app_id=”YOUR_APPLICATION_ID” width=”400″ height=”500″>
  18. Comments :  
    • <fb:comments width=’480′/>
  19. Fan Profile : 
    • <fb:fan profile_id=”YOUR_PAGE_ID” stream=”1″ connections=”10″ width=”300″></fb:fan>


Python interface to Twitter API

>There are two python wrappers available for the Twitter API. One is the python-twitter hosted by google code and the other is Python-Twitter-Tools (PTT).

python-twitter has the typical Python interface and simplicity, very easy to install – has a dependency on simplejson. PTT on the other hand is a it more sophisticated and provides an IRCbot along with the code. As expected it has a few more dependent libraries.

General knowledge on setup tools for Python Applications: http://peak.telecommunity.com/DevCenter/setuptools
For discussions and info on using the Twitter API join twitter-development-talk googlegroups.

OpenSSL in UBUNTU Linux

>OpenSSL is an open source implementation of the SSL and TLS protocols. The core library (written in the C programming language) implements the basic cryptographic functions and provides various utility functions. [wikipedia]
OpenSSL is provided by default in all linux installations toimplement the Secure Socket Layer operations. Using OpenSSL you canestablish your own certifying authority and generate and sign serverside and client side certificates. More information about the OpenSSLproject can be found here : The OpenSSL Project.
Establishing a certifying authority and generating certificates in an UBUNTU linux installation is particularly easy :

  1. #apt-cache search libssl | grep SSL
  2. #cd && mkdir -p myCA/signedcerts && mkdir myCA/private && cd myCA
  3. #echo ’01′ > serial  && touch index.txt
  4. Create an initial caconfig.cnf file suitable for the creation of CA certificates (refer link below)
  5. #export OPENSSL_CONF=~/myCA/caconfig.cnf
  6. #openssl req -x509 -newkey rsa:2048 -out cacert.pem -outform PEM -days 1825
  7. #export OPENSSL_CONF=~/myCA/exampleserver.cnf
  8. #openssl req -newkey rsa:1024 -keyout tempkey.pem -keyform PEM -out tempreq.pem -outform PEM
  9. #openssl rsa < tempkey.pem > server_key.pem
  10. #mv tempkey.pem server_key.pem
  11. #export OPENSSL_CONF=~/myCA/caconfig.cnf
  12. #openssl ca -in tempreq.pem -out server_crt.pem
  13. #rm -f tempkey.pem && rm -f tempreq.pem

The above 13 commands create a CA – create a server certificate andalso sign it. For a much detailed and informative tutorial refer : https://help.ubuntu.com/community/OpenSSL

The above process can also be automated using the CA.pl script whichcomes with the library — this post will be helpful for those who wantto know what goes on inside the script.

Check where your Domain Name is Hosted

>Geotool: http://geotool.servehttp.com/ provides a very effective and useful interface to check where your domain name is being hosted. To check, go to the website and enter your domain name.

Blog at WordPress.com.
Theme: Esquire by Matthew Buchanan.

Follow

Get every new post delivered to your Inbox.