Go Back    Forum > Digital Publishing / Web Sites > Website and Server Troubleshooting

Reply
 
LinkBack Thread Tools
  #1  
03-15-2011, 10:44 PM
kpmedia's Avatar
kpmedia kpmedia is offline
Site Staff | Web Hosting, Photo
 
Join Date: Feb 2004
Posts: 4,311
Thanked 374 Times in 341 Posts
Earlier this month, we re-did the social bookmarking linkage on The Digital FAQ's forum (dumping vBulletin's idea of what Social Bookmarking should be, creating our own solution), and that included the use of the "new" Facebook Like button application, which required a Facebook application ID and extra coding to the site headers. Until today, it was fine**. The Recommend box was simply missing.

I checked a few other sites, including some very large ones, that use a similar setup in their forums. Same issue. In at least one case, another site was showing "Invalid Application" in a black Times font, instead of the proper box.

This was the code that powers the box on this site:
PHP Code:
<td width="100px" valign="top" align="left">
<
script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like>
</td> 
Based off a similar but non-identical issue discussed in the Facebook dev forums, I saw a mention to add this to the code:
PHP Code:
<div id="fb-root"></div
Which turns our code into this:
PHP Code:
<td width="100px" valign="top" align="left"><div id="fb-root">
<
script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like layout="button_count" show_faces="false" width="100" action="recommend" font="arial"></fb:like>
</div></td> 
... and the Like box (or Recommend box, in our case) is back.

According to one FB dev forum member, this was always the "proper method" for using their code, but I can honestly say I've never seen it before. It sure as heck wasn't on the WYSIWYG developer tool on their site, which helps us create these buttons and boxes -- and I was there just two weeks ago. I don't know what crawled up somebody's butt at Facebook, but they seem to have willynilly changed the code again (server-side, on their end), and begun to "enforce" this so-called "proper" code use, without announcements before or after it was done. What a nuisance.


** IE excluded. Internet Explorer is choking on the new FB code, so we're using IE conditionals to block access to IE browsers. The older "Share" button is used for IE users -- again, by use of conditionals. **

- Did my advice help you? Then become a Premium Member and support this site.
- Please Like Us on Facebook | Follow Us on Twitter

- Need a good web host? Ask me for help! Get the shared, VPS, semi-dedicated, cloud, or reseller you need.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VBSEO + page 'uses an invalid or unsupported form of compression' admin Website and Server Troubleshooting 3 03-14-2011 11:24 PM
Mouse stops working randomly Sossity Computers 1 02-04-2011 06:07 AM
DVD Writer not showing in Sony DVD Architect scogdell Author, Make Menus, Slideshows, Burn 3 03-30-2008 11:25 PM
Dvd menu text & invisible button manthing Author, Make Menus, Slideshows, Burn 11 06-22-2006 01:21 AM
ATI MMC8.1 Stops recording Jeffcar11 Capture, Record, Transfer 1 08-19-2004 05:06 AM




 
All times are GMT -5. The time now is 06:07 AM