Showing posts with label facebook. Show all posts
Showing posts with label facebook. Show all posts

Thursday, August 12, 2010

Linking Facebook Messages to Twitter

Maintaining too many social network sites? The Facebook / Twitter integration makes it much simpler. You just need to post messages on your Facebook wall, and Facebook takes care of re-posting it to your Twitter page. The steps are very simple and straightforward:
  1. Login to your Facebook account.
  2. Open a new window or tab and login to the Twitter account that you want to post to.
  3. From the Facebook window / tab, go to http://www.facebook.com/twitter
  4. Just pick the Facebook page you want to Tweet and click the link button
That's all there is to it. My Dragonpay Online Payment Facebook Page is now sending tweets to my Dragonpay Twitter page.

Getting a Vanity Name for my Facebook Page

Ever wondered how some sites get to have a short Facebook URL like http://www.facebook.com/mysite while others have very long hard-to-remember names like http://www.facebook.com/pages/Dragonpay/150520031629713? Well, it seems that in order to request for a personalized name, you have to accumulate at least 25 "fans". Once you have achieved that, then go to http://www.facebook.com/username and check the availability of your desired name.

For me, I have registered my personal vanity name. So my personal Facebook page is now:


But, of course, I really couldn't care less about having a personal Facebook page for myself. My goal in this whole exercise is to get a vanity name for Dragonpay's Facebook Page which I've been experimenting with for the past few days.

Now, I've finally accumulated 30 "fans" (thanks in large part to my previous postings at the Facebook Developers Forum), so I was able to acquire (tada!):


So typing my original URL now redirects to this shorter URL.

Tuesday, August 10, 2010

Integrating Facebook Like Button with Open Graph Protocol

I've been stumped for the past couple of days trying to figure out the Facebook Open Graph Protocol. I think I've finally figured it out today. To summarize, I have an external website based on Wordpress:


I created a Facebook Page manually using my account:


My objective was to put a Like Button (or Like Box) at my external site, which when clicked, makes the "clicker" my Facebook page's "fan".

Just like several people in the Facebook Developers Forum, I was getting that weird og:type=link error on both the Like Button and the Like Box. Sure enough, if you view the html source of the Facebook page above, you will see a meta tag for og:type=link. There seems to be no way to edit the meta tags in the Facebook page.

What I did next was to create a Like Button for my external site using the Facebook Like Button generator. As explained by another forum member, this generator seems to be intended for external websites. So I put in all the necessary meta tags on my external site (you can do a view html source of www.dragonpay.ph to see the tags I inserted in my Wordpress header.php). As expected, the "Like Button" works fine for my external website.

But wait -- this was not what I intended originally. I wanted the user to "like" my Facebook Page, not my external site. Now here's the twist that I discovered. When you ask Facebook to like your external site, it actually creates another Facebook Page for your site on-the-fly. In my case, it created the page as:


Notice that this is a completely different URL from the one I manually created above. And more interestingly, if you do a view html source of this new page, it actually has an og:type=website!

So I quickly went to the "Like Box" generator and typed in the Facebook page id of 150520031629713. And guess what -- the "Like Box" now works perfectly fine as well.

So, to summarize my findings, it seems that you cannot use the "Like Button/Box" generator and link it to a Facebook Page that you created manually. It seems that you have to let Facebook create the page for you on-the-fly by first putting the necessary open graph meta tags on your external site, then wait for Facebook to scrape it. This page that it creates on-the-fly will have the correct open graph meta tags that will work with the "Like Button/Box".

Now the only problem which I cannot answer is -- what if the original Facebook Page that you have already has a significant number of followers? How do you now switch them over to the on-the-fly version? In my case, its not a big deal since my original Facebook Page only had about 20 followers. So I'll just kindly ask them to re-click my "Like Button/Box" so that they become followers of the new page.