• Blog
  • Bookmarks
  • RSS
  • What’s my setup?

Ricard Torres Code

HTML, CSS and JavaScript

facebook

April 11, 2011 by Ricard Torres

How to calculate relative time like facebook

This snippet returns the relative time from a given date. Just like facebook does.

Posted in PHP
Tagged facebook
April 5, 2011 by Ricard Torres

facebook Like button bug fb_xd_fragment IE

Prevent the facebook like button from breaking your site with Internet Explorer. Hide Google Analytics duplicate url with the fb_xd_fragment parameter.

Posted in PHP, WordPress
Tagged facebook, Internet Explorer
January 25, 2011 by Ricard Torres

How to add facebook Share button WordPress

Add the facebook share button with a line of code. You can also install a WordPress Plugin.

Posted in WordPress
Tagged facebook
September 19, 2010 by Ricard Torres

How to add Facebook like button WordPress

Use the Facebook API and create your own Like button for your WordPress site

Posted in WordPress
Tagged facebook

Categories

  • Apache (15)
  • CSS (38)
  • Gatsby (5)
  • HTML (17)
  • Hugo (3)
  • JavaScript (66)
  • Linux (26)
  • Mac (9)
  • Magento (44)
  • MySQL (6)
  • NGINX (4)
  • Node.js (7)
  • PHP (27)
  • WordPress (96)

RSS Ricard Torres Blog

  • Social media makes no sense
  • Weeknote 18 (2022)
  • Weeknote 15 (2022)
  • Weeknote 10 (2022)
  • The American from Hong Kong

RSS Korean Tapas

  • Episode 16: Travel
  • Episode 15: Military culture
  • Episode 14: I love trains
  • Episode 13: Campus Life
  • Episode 12: It’s election day!

Sharing code since 2010

@ricard_dev

@ricard_dev@mastodon.technology

4.582.810 post views so far.

© Ricard Torres Code - 2022