Among some of the new vocabulary that has entered our lexicon over the past few years are words like ‘likes’, ‘followers’, and ‘to google’. For those working in marketing, these terms have become a new type of virtual currency, and they are minted, traded, and evaluated on the world’s largest social media platform, Facebook. But there’s more to success in Facebook marketing than merely collecting...
The Facebook like button, usually just referred to as the like button, has long-since broken out of the confines of its native social network. This famous “thumbs up” icon can be found on a diverse range of websites, blogs, and web apps, giving visitors the opportunity to show their appreciation for a company, celebrity, or particular content. Meanwhile, with the help of an integrated Facebook share button, users can show content that they find interesting or entertaining with their circle of friends – allowing brands, messages, or posts to spread around the world quicker than ever before. So why exactly is this social media plugin fast becoming a rite of passage for website operators? We’ll take you through the basic information and benefits behind the use of social media widgets as well as show you how to add your own Facebook like button.
- What are the Facebook social plugins?
- Social signals: the benefits of embedding Facebook buttons
- How to add a Facebook like button to your website
- What are these two code varieties and what are their differences?
- An alternative to embedding: simple, CSS-designed HTML links
- Integrating social plugins into your own website – a summary
What are the Facebook social plugins?
Social signals: the benefits of embedding Facebook buttons
Social networks provide the perfect channels to share content and form a direct line of contact to customers, readers, and fans. With its aforementioned like and share functions as well as the option for leaving comments, Facebook does this perfectly. Feedback from users that is given along such lines, also referred to as social signals, plays a decisive role in determining online success for a number of reasons:
- The more reactions your posts receive, the greater the chance of other authors, bloggers, or private users seeing your content and linking to it. This results in valuable, topic-relevant backlinks – which in turn has a very positive effect on your search engine ranking.
- Backlinks, mentions, and likes increase your reach and authority concerning relevant keywords. This can be of benefit in generating new customers, readers, or fans. It’s also likely to add an additional positive effect on your web presence.
- Positive social signals are reflected in traffic growth in the long term too – another plus point that helps you to achieve a better ranking in Google’s SERPs.
The above points prove that even if user signals on social media don’t count directly towards your ranking on Google and Co., they still have a huge positive influence on your search engine positioning. The basic requirement for this is to provide high-quality, informative content that leads to likes, shares, and comments – and built-in Facebook like and share buttons on external sites can help you to expand the reach of this content significantly.
How to add a Facebook like button to your website
In order to generate an official Facebook like button or share button, you’ll need the corresponding code configurator, which can be found in the Facebook development area ‘Facebook for Developers’. In the next section, we’ll explain how you can create a like button using this tool. But first, it’s necessary to access the Facebook overview page for developers in order to see the full list of social plugins available. Once you’re on this page, select the ‘like’ button.
On the following page, you’ll find a little introduction as well as a step-by-step guide to integrating your own Facebook like button. The third section contains the configurator you’ll need, although it can also be located in the menu listed above. You’ll need to fill out the following options fields for the web tool in order to generate a code:
- URL to Like: the social plugin requires the internet address for your Facebook page so that the button can be linked to it later. Enter the full URL of your company Facebook page in this field.
- Width: the ‘width’ option allows you to define the width of your like plugin in pixels. The standard width for the like button plugin is 450 pixels, with the minimum width set at 225 and the maximum 625.
- Layout: the layout field allows you change the appearance format for the Facebook button. This mostly affects the positioning of the number of people who have already interacted with your Facebook page via this social plugin. It’s a common misconception that this figure only shows the number of likes that a page has received. In fact, it combined the number of likes, shares, and comments into one figure.
- Action Type: the action type has no direct effect on the functionality of the button. Instead, it just affects the wording. If you choose to keep the standard setting of the ‘like’, then you’ll take advantage of the classic variant and users who click on the button will inform their Facebook news feed automatically that they like your page. The alternative option, ‘recommend’ allows your user to recommend your content, company, or blog to their friends. The variation is designed predominantly with editorial posts in mind, where the positive statement made by the ‘like’ button may be inappropriate – in the case of a natural disaster or similarly negative events, for example.
- Button Size: you also have the option to change the size of your button. For smaller button displays, you should stick to the default size ‘small’. But if you want a bigger like button to help it stand out more on your page, then you can do so by changing the size to ‘large’.
- Show Friends’ Faces: if site visitors are logged into Facebook while viewing your web project, then the social plugin can display additional profile pictures of their friends who have already liked your Facebook page. To implement this feature, all you need to do is check the tick box in the options field.
- Include Share Button: you don’t have to implement a Facebook share button separately. If you’ve checked this box, then a share option will be automatically integrated alongside the like button plugin.
If you don’t own a Facebook app ID, you can create one easily in the social plugins menu. Simply log in with your Facebook account and choose ‘Add New App‘, which can be found underneath ‘My Apps’ in the top menu listed above. Here, you can enter the display name for your ID as well as your contact e-mail address and chosen category.
The Facebook share button doesn’t have to be created in the same package as the like button: simply select the ‘Share’ button from the menu and generate a second social button in exactly the same way as you did for the like button with the help of the configurator.
What are these two code varieties and what are their differences?
In order for Facebook to display these personalized buttons, the user’s browser contacts the Facebook servers automatically. If the user is logged into the social network, or has been logged in previously, and calls up a page that has a social plugin, then the user can be identified precisely. But this does mean that in return, Facebook receives information such as the access time, user ID, or even information about the browser being used and the individual IP address. The social media giant has previously expressed that it reserves the right to store and use this collected data in order to improve its own products and services as well as to optimize targeted ad displays. This has led to some countries, including Germany, declaring this traditional approach to include the Facebook like button and other social plugins to be unlawful.
An alternative to embedding: simple, CSS-designed HTML links
Shariff is a modern solution to the problem of sharing social media content directly through other websites and platforms. This open source project has been published and developed by Heise through the open platform GitHub, where you can download the source code. A Shariff sharing button is basically nothing more than a simple static link that’s been individually designed to look like a typical share button from one of the popular social media platforms like Facebook, Google+, and Twitter, with the help of the stylesheet language CSS (sheriff.min.css files). This means that the development team at Heise didn’t have to rely on ordinary graphics, it instead opted for flexible vector icons that remain sharp in high-resolution displays and can be placed on either your own private server or via the content delivery network MaxCDN.
<!DOCTYPE html> <html> <head> [...] <title>your website</title> <link href="shariff.min.css" rel="stylesheet"> </head> <body> <h1>your article</h1> <p>[...]</p> <div class="shariff"></div> <script src="shariff.min.js"></script> </body> </html>
If you use an optional server component, it’s even possible to receive and display information about the number of site visitors that have used your integrated Facebook share button. For this purpose, Heise has developed three backends – a PHP, a Perl, and a Node.js version as well as outsourced modules for Facebook, Google+, and Twitter. The backend sends a request to the server of the network via the corresponding API, and in turn it receives a collection of Meta data as an answer, from which it can then extract the information regarding where the targeted URL has been shared.
Integrating social plugins into your own website – a summary
Linking your own website to your social network pages via buttons can make it much easier to distribute your content. This isn’t just true of Facebook – it applies to all other platforms that you’re active on. If you open up a dialog with your users and regularly publish high-quality content, then the chances are your website traffic will benefit from social signals in the long run. The social plugins that Facebook (and other social media channels like Google+ or Twitter) offers to help you embed your buttons are really helpful, fast, and uncomplicated, but there are also other ways to include social media buttons that don’t compromise data protection, like the Shariff tool from Heise for example.
Shariff doesn’t share data to the server with the social network in question until your site visitors have agreed to it, thanks to the power of static links. By using links like this with button optics, you can enjoy the benefits of linking from your website to your social media profiles without having to hand over your site visitors’ personal data to the social media giants automatically.