PHPackages                             nickdavis/remote-content - 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. nickdavis/remote-content

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

nickdavis/remote-content
========================

WordPress plugin to help developers get remote content from Facebook, Instagram and Twitter in a standard format.

097[5 issues](https://github.com/nickdavis/remote-content/issues)PHP

Since Aug 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/nickdavis/remote-content)[ Packagist](https://packagist.org/packages/nickdavis/remote-content)[ RSS](/packages/nickdavis-remote-content/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Remote Content
==============

[](#remote-content)

WordPress plugin to help developers get remote content from Facebook, Instagram and Twitter in a standard format

About
-----

[](#about)

This plugin is for developers who want to quickly and easily get data from the Facebook, Instagram and Twitter APIs in a standard format.

It is very much a work in progress.

Setup
-----

[](#setup)

Currently you need to define the relevant API keys as constants for the social network/s you want to use.

**Do not define the constants in any version controlled file**.

Instead include them in `wp-config.php`, assuming this is not version controlled.

```
/**
 * API Keys (Facebook)
 */
define( 'FACEBOOK_ACCESS_TOKEN', '' );
define( 'FACEBOOK_CLIENT_ID', '' );
define( 'FACEBOOK_PAGE_ID', '' );

/**
 * API Keys (Instagram)
 */
define( 'INSTAGRAM_ACCESS_TOKEN', '' );
define( 'INSTAGRAM_CLIENT_ID', '' );
define( 'INSTAGRAM_USER_ID', '' ); // https://www.instagram.com/username/?__a=1

/**
 * API Keys (Twitter)
 */
define( 'TWITTER_CONSUMER_KEY', '' );
define( 'TWITTER_CONSUMER_SECRET', '' );
define( 'TWITTER_OAUTH_ACCESS_TOKEN', '' );
define( 'TWITTER_OAUTH_ACCESS_TOKEN_SECRET', '' );
define( 'TWITTER_USERNAME', '' ); // Without the @
```

Usage
-----

[](#usage)

First, get the data you need in either the standardised or raw format.

```
\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'facebook' );
\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'facebook', true ); // Gets the raw, non-standardised data

\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'instagram' );
\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'instagram', true ); // Gets the raw, non-standardised data

\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'twitter' );
\NickDavis\RemoteContent\ContentHandler\get_remote_content( 'twitter', true ); // Gets the raw, non-standardised data
```

### Standard format

[](#standard-format)

The standard format gives you the data from the API in a standardised array, using keys such as `title` and `username` to give you a consistent way of working with the data, whatever the origin.

### Raw format

[](#raw-format)

The raw format gives you the raw data from the API call. To make it easier to view the output you might want to use Kint (also available for WordPress via the Kint PHP Debugger plugin) to more easily understand the output.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee9d22df92c7dc08f3a75689675c524d7eee187dba3701c399e8209ce4f757c?d=identicon)[nickdavis](/maintainers/nickdavis)

---

Top Contributors

[![nickdavis](https://avatars.githubusercontent.com/u/1030574?v=4)](https://github.com/nickdavis "nickdavis (9 commits)")

### Embed Badge

![Health badge](/badges/nickdavis-remote-content/health.svg)

```
[![Health](https://phpackages.com/badges/nickdavis-remote-content/health.svg)](https://phpackages.com/packages/nickdavis-remote-content)
```

PHPackages © 2026

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