PHPackages                             isaacrankin/silverstripe-social-feed - 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. [API Development](/categories/api)
4. /
5. isaacrankin/silverstripe-social-feed

AbandonedArchivedSilverstripe-vendormodule[API Development](/categories/api)

isaacrankin/silverstripe-social-feed
====================================

A social feed module for fetching content from Facebook and Twitter

81.6k16[5 issues](https://github.com/isaacrankin/silverstripe-social-feed/issues)PHP

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/isaacrankin/silverstripe-social-feed)[ Packagist](https://packagist.org/packages/isaacrankin/silverstripe-social-feed)[ RSS](/packages/isaacrankin-silverstripe-social-feed/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Social Feed
========================

[](#silverstripe-social-feed)

Combine social media posts from Facebook, Twitter and Instagram into a single feed. Each feed is available separately also.

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

[](#installation)

`composer require isaacrankin/silverstripe-social-feed`

Usage
-----

[](#usage)

``

Alternatively you can call the `SocialFeed` method directly like so:

```

					Type: $Type
					Created: $Created
					User: $UserName

					$Content

```

The posts are ordered from newest to oldest.

Within the `SocialFeed` control loop the following values are available:

- `$URL` - a URL for the social media post
- `$Type` - the type of post, either "facebook", "twitter" or "instagram"
- `$Created` - the creation/posted date of the post
- `$UserName` - the user who made the post
- `$Image` - the main image for the post
- `$Data` - all of the data for a single post in the original structure returned from the API's. Read documentation for the API's to see what's available.

Caching
-------

[](#caching)

All SocialMediaProvider::getFeed() calls are cached for 15 minutes and can be cleared either in the CMS or by appending **?socialfeedclearcache=1** in developer mode.

There is also a SocialFeedCacheTask that you can setup as a cronjob on your server to ensure that the end-user never has to wait for your server to make its API calls to Facebook, Twitter, etc and update the various social feed caches.

Alternatively, if you're using the [QueuedJobs](https://github.com/silverstripe-australia/silverstripe-queuedjobs) module, this process will be handled automatically for you, as a queued job is setup to update the cache every 10 minutes.

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

[](#requirements)

SilverStripe 4 or newer

Twitter
-------

[](#twitter)

The Twitter data is a collection of the most recent Tweets posted by the user. The following API endpoint is used `https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi`

[Twitter API documentation for user timeline](https://dev.twitter.com/rest/reference/get/statuses/user_timeline)

### Credentials

[](#credentials)

You'll need to create a Twitter app here

Facebook
--------

[](#facebook)

The Facebook data returned is the most recent posts for a given Facebook Page. The following API endpoint is used `https://graph.facebook.com/PAGE_ID/feed?access_token=ACCESS_TOKEN`

[Facebook API documentation](https://developers.facebook.com/docs/graph-api/using-graph-api)

### Credentials

[](#credentials-1)

To get the necessary Facebook API credentials you'll need to [create a Facebook App](https://developers.facebook.com/apps).

Instagram
---------

[](#instagram)

The most recent media published for a user. The following API endpoint is used `https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS_TOKEN`[Instagram API documentation for resent user media](https://www.instagram.com/developer/endpoints/users/#get_users_media_recent_self)

### Credentials

[](#credentials-2)

To get the necessary Instagram API credentials you'll need to [create an Instagram Client](https://www.instagram.com/developer/clients/manage/).

You'll need to add the correct redirect URI in the settings for the Instagram App, such as

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.4% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dd73bd7b8df19ce9a067395ef81d91d2da29c8689e4a06455ae71ff5e708daa?d=identicon)[isaacrankin](/maintainers/isaacrankin)

---

Top Contributors

[![isaacrankin](https://avatars.githubusercontent.com/u/838408?v=4)](https://github.com/isaacrankin "isaacrankin (21 commits)")[![magnusbengtsson](https://avatars.githubusercontent.com/u/1381028?v=4)](https://github.com/magnusbengtsson "magnusbengtsson (4 commits)")[![sn4h](https://avatars.githubusercontent.com/u/131519602?v=4)](https://github.com/sn4h "sn4h (2 commits)")[![jason-zz](https://avatars.githubusercontent.com/u/6354744?v=4)](https://github.com/jason-zz "jason-zz (1 commits)")[![nathancox](https://avatars.githubusercontent.com/u/194315?v=4)](https://github.com/nathancox "nathancox (1 commits)")

### Embed Badge

![Health badge](/badges/isaacrankin-silverstripe-social-feed/health.svg)

```
[![Health](https://phpackages.com/badges/isaacrankin-silverstripe-social-feed/health.svg)](https://phpackages.com/packages/isaacrankin-silverstripe-social-feed)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)[pixelant/pxa-social-feed

Add Facebook, Instagram, and Twitter feeds to your site.

2349.3k](/packages/pixelant-pxa-social-feed)

PHPackages © 2026

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