Skip to main content

integrating your website/blog with facebook

To integrate your blog or any other website with facebook just involves 2 simple steps. Thankx to facebook you. The administrator dosent need to do many things to integrate and everything is handeled by the facebook at their end.
The 2 steps that the admistrator needs to do is
1.       Add the meta tags to the blog/website in the head sectiontion so that when facebook lints your site it can compile the information that your blog/website it is showing
2.       Adding an optional like button to your blog/website so that the visitors that have an facebook account can like the page. All the likes statistics then can are shown on the facebook page and to every administrator.
A website when is added to the facebook has 3 options for showing the administrator
a.       Adding a single or multiple users of facebook as an admisnistator of a page that represents your blog on the facebook
b.      Adding an app an an admistrator
c.       Adding both
1.       Adding meta tag to the blog.
This particular process of integration is handeled by the open graph protocol by the facebook. http://developers.facebook.com/docs/opengraph
Just copy and paste the meta tags given on this page and change the values as per your needs.
After adding the meta tags go to this page http://developers.facebook.com/tools/lint/
And enter the URL of the site u have added meta tags to
This will present the information to you as the facebook reads it.
2.       Adding a like button is simple.
Add the url of the site where you want this like button to be hosted
Click on get code
You will be presented with a piece of code that is an iframe. Copy and paste this code anywhere in your website source where you want like button to be shown.

DONE. Don’t forget in the end to put updates on your facebook pageJ

Comments

Post a Comment

Popular posts from this blog

ParameterLess construct

When I was creating my first cloud app that’s used Microsoft Azure for storage and computation purposes I came across a strange problem which wasn’t related to the Azure itself but was more related to the c# and the .net framework. When I was writing the code I made a Class which had no parameter less construct. Objects of this class were then used in the program. Because this class was derived from Ienumerator I could actually user Foreach() on the objects of this class but to my surprise the code shown below was showing error at the highlighted line. using System; using System.Collections.Generic; using System.Linq; using System.Web; using Microsoft.WindowsAzure.StorageClient; using Microsoft.WindowsAzure; namespace WebRole1 { public class mspDataServiceContext : TableServiceContext { public mspDataServiceContext(string baseAddress, StorageCredentials credentials) : base(baseAddress, credentials) { } static int c; public IQueryable<msp> msps { get { retur...

Its a Dynamic(javascript) world

I thought we are living in a world which looked like this ||(or) mayb this http://www.ihatejavascript.com/ .. LOL being a web developer i was working with javascript and also at the same time i always preferred to work with something else... Silverlight, Flash mayb.. till recently.. i actually saw what JAVASCRIPT is || has become in the time i worked on ASP.Net MVC. Javascript evolved from a dynamic sort of functional language that was differently implemented by nearly every browser(and yes that was for you IE6 ) and every one hated him and i thought it still is that ulgy thing. till i just stumbled upon THIS This is an old video.. someone was just trying to bring the Javascript to server side. so now same developer /*Who a Javascript developer?*/ can work on both the sides.. client as well as web. and thought that things like these shouldn't be allowed on internet maybe because its a hour long video and now has around 233,492 views just consider the am...

Problem with Google visualization API- DataTable

One of the most widely charting API is the Google visualization API . Which enables the developers to create charts using javascript at runtime by supplying the data in a particular format. I had to use this API with ASP.Net. So the major problem in front of me was how to transfer the data in my database to the client side JavaScript. Which I could solve by using .ashx pages. I created my own class for transforming .Net DataTable to a JSON string. The final problem that I faced was that when I transferred the JSON string to the client side using Jquery AJAX method though it was parsing the JSON correctly. The Google DataTable was being formed correctly the final AnnonatedTimeline I was trying to make with that JSON data was showing errors. So to debug I created a Google DataTable manually and converted it into JSON using the method it provides. The JSON string that was given out by Google’s very own DataTable and my JSON string were exact match still, still mine was showing ...