PHPackages                             markguinn/silverstripe-fb-like-button - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. markguinn/silverstripe-fb-like-button

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

markguinn/silverstripe-fb-like-button
=====================================

Super simple Silverstripe extension to add Facebook like buttons to pages.

1.0.1(11y ago)12123[1 issues](https://github.com/markguinn/silverstripe-fb-like-button/issues)MITPHP

Since Aug 26Pushed 10y ago1 watchersCompare

[ Source](https://github.com/markguinn/silverstripe-fb-like-button)[ Packagist](https://packagist.org/packages/markguinn/silverstripe-fb-like-button)[ RSS](/packages/markguinn-silverstripe-fb-like-button/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

SilverStripe Simple Facebook Like Button
========================================

[](#silverstripe-simple-facebook-like-button)

There are several other Facebook integration modules out there but I didn't find any that were just a really simple like button. This should be super easy to use and it integrates with the OpenGraph module: .

Requirements
------------

[](#requirements)

Silverstripe 3.0+

Maintainer
----------

[](#maintainer)

Mark Guinn - Pull requests welcome.

Installation
------------

[](#installation)

Download this module into a folder in the root of your project. Does not require /dev/build.

Usage
-----

[](#usage)

The simplest case is to add this to \_config/config.yml:

```
Page:
  extensions:
    - FBLikeButtonExtension

```

Then add `$FacebookJSSDK` to your main template right after the body tag. Then just add `$LikeButton` anywhere you want one. If you're using the OpenGraph module the app ID will be pulled from that, otherwise you'll need to set:

```
FBLikeButtonExtension:
  application_id: YOURAPPIDHERE
```

Application ID's can be attained here: Any changes to the default configuration can be made as follows:

```
FBLikeButtonExtension:
  application_id: YOURAPPIDHERE
  default_button_config:
    layout: button_count
```

Using the same attributes found here:

Any Page class or subclass can also implement a getFBLikeButtonConfig method to override the default configuration.

Bonus Twitter Support
---------------------

[](#bonus-twitter-support)

Twitter support is so easy it doesn't really need it's own module. But you get if for free with this one. Just add `$TwitterShareButton` anywhere in a Page context. It will also work fine in a list of pages (like a blog or search list).

LICENSE (MIT):
--------------

[](#license-mit)

Copyright (c) 2013 Mark Guinn

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~351 days

Total

2

Last Release

4296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/485dfc9fc93cad085c83c3276f19b6e9322ee910ab0e1685de0db42228dbf97b?d=identicon)[markguinn](/maintainers/markguinn)

---

Top Contributors

[![jedateach](https://avatars.githubusercontent.com/u/1356335?v=4)](https://github.com/jedateach "jedateach (2 commits)")

---

Tags

facebooksilverstripelike button

### Embed Badge

![Health badge](/badges/markguinn-silverstripe-fb-like-button/health.svg)

```
[![Health](https://phpackages.com/badges/markguinn-silverstripe-fb-like-button/health.svg)](https://phpackages.com/packages/markguinn-silverstripe-fb-like-button)
```

###  Alternatives

[tractorcow/silverstripe-opengraph

Implementation of the Facebook Open Graph protocol for SilverStripe

52141.6k5](/packages/tractorcow-silverstripe-opengraph)[jonom/silverstripe-share-care

Social media sharing previews and customisation for Silverstripe

2932.7k1](/packages/jonom-silverstripe-share-care)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
