jump to navigation

facebook-connect on Blogger July 23, 2009

Posted by suhaskaundinya in API, blogger, development, web.
add a comment

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 March 21, 2009

Posted by suhaskaundinya in API, Python, development, twitter.
add a comment

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.