WP-4610: refactor buildSocialURL. Fix missing name parameter.