Tuesday, July 28, 2009

Facebook Badge does not Work?

Facebook badge is what I wanted to put in place of static "About Me" provided by Blogger. The problem is, Facebook badge does not work! I hit the wall. Experimenting with the embed code provided by Facebook, I realized that badge.facebook.com does not work. It returns 302 (Moved Permanently), 301 (Moved Temporarely) or 400 (Bad request). Changing the CNAME from "badge" to "www" worked.

Here is what I did.
Changed this
<a href="http://www.facebook.com/nishant.neeraj" target="_TOP" title="Nishant Neeraj">
<img alt="Nishant Neeraj" style="border: 0px none ;" src="http://badge.facebook.com/badge/677811901.1700.326749801.png" />
</a>
to this

<a href="http://www.facebook.com/nishant.neeraj" target="_TOP" title="Nishant Neeraj">
<img alt="Nishant Neeraj" style="border: 0px none ;" src="http://www.facebook.com/badge/677811901.1700.326749801.png" />
</a>
- Nishant

19 comments:

Nyi Nyi said...

this is helpful!! Thanks...

Kim Falconer said...

Genius! Thank you. That fixed the issue--and I'd been searching for a solution all week.

Much appreciated.

Anonymous said...

this still didnt work for me...

Nishant Neeraj said...

try accessing the the URL mentioned "img" tag from your browser's address bar. Like in my case, I played around with http://badge.facebook.com/badge/677811901.1700.326749801.png until I have got the badge working.

Hope this helps.

-Nishant

Kelly said...

ohh thank you. youre the only one who addressed the problem! thanks, ive been searching for weeks too! not sure why it worked for a few weeks and then didnt..youre wonderful!

Jake_Sully said...

Cool. Genie Naishe!!

Savio said...

thanks....

Sheng Loong said...

Good post. I have introduced this blog post in my blog. Hopefully it can help others as well.

Cheers,
Sheng Loong.

Ashley Daniel Koh said...

IT WORK!! Thanks! :D

Noraini said...

OM gosh it really worked. Thanks a lot Naishe. U're a genius...

Anonymous said...

Do your privacy settings affect your badge? If you keep most things private, can people still at least click your badge and get to your main page?

I still can't get mine to work.

Nishant Neeraj said...

Privacy should not affect the badge display -- I tried with privacy. You may try making your profile public for a couple of hours and try -- see if badge works. If it still does not, see what response the badge URL returns.

How would you do that? Go to http://web-sniffer.net/ paste the badge URL (the URL in use badge code that looks like http://badge.facebook.com/badge/677811901.1700.326749801.png) and submit.

If this returns HTTP Response Header status 200/OK then the badge is fine. Else, change "http://badge" with "http://www" in the URL and try again. If this returns 200/OK then you go ahead with this. Else, there is some other issue with your badge.

Play around.

David Khachadoorian said...

Thank you for this - that problem was driving me a bit bonkers too! Much appreciated - David Khachadoorian

Rob Brown said...

Hi Nishant !! ..it seems your the only person i can find on the net who could have a solution to this problem !!

i`ve tried going through the process owhich you mentioned earlyer.. web-sniffer.net.. both ways have shown 200/ok .. the problem is im still seeing this error when i`m clicking my Facebook badge on Blogger..do you know any other options to try ??

The page you requested was not found.
You may have clicked an expired link or mistyped the address. Some web addresses are case sensitive.

Return home
Go back to the previous page




Kind regards !!

R

Anonymous said...

Hi Nishant thanks for getting in touch !!.. the problem im having is the badge is showing on the blogp age but when i click onto it.. it doesnt open to my facebook profile page, it opens to a page saying `page not found`..currently unavailable... ?? hmm

i notice on your page blog you have your Facebook badge, yours opens directly to your profile page..was wanting it to just that !!

thanks for your help..


Rob

Nishant Neeraj said...

Hey Rob,

The blog: http://fromheretotherebybicycle.blogspot.in/ shows the badge; and on clicking the badge (even the code shows) takes me to https://www.facebook.com/people/Rob-Brown/1062433361 that seems to be your profile.

- naishe

Anonymous said...

Hyy Naishe..thanks for checking it out.. the thing im having a problem with is the page when im clicking the Facebook badge the page that is opening is displaying..

>>This content is currently unavailable
The page you requested cannot be displayed right now. It may be temporarily unavailable, the link you clicked on may have expired, or you may not have permission to view this page.<<<

yeh i notice at the top in address bar is https://www.facebook.com/people/Rob-Brown/1062433361 ... it`s just frustrating why my profile page is not being displayed....

R

Anonymous said...

Hi Naishe.. managed to get it working.. went into privacy settings and clicked the tab public search...

Jos Buttler said...

Good Job, I like your blog post . Please keep share. - mahindra 575 di

Post a Comment