WP Manifestindependent plugin directory
manifest / social / wp-rss-bridge

WP RSS Bridge

Use social network data in you WP project

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/tameroski/wp-rss-bridge/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Use social network data in you WP project.

Based on RSS Bridge

Data are cached for better performances.

Usage

$bridges = array(
    "Facebook" => array(
        'u' => 'zuck',
        'media_type' => 'all'
    ),
    "Twitter" => array(
        'u' => 'Jack',
        'norep' => 'on'
    ),
    "Instagram" => array(
        'u' => 'kimkardashian'
    )
);
$processor = new Wp_Rss_Bridge_Processor($bridges);
$data = $processor->get_data();

Default cache timeout is 24h. This can be changed using :

$processor = new Wp_Rss_Bridge_Processor($bridges, 60); // Second parameter is cache timeout in seconds.

Finally, it's also possible to change the user agent used when querying data :

$processor = new Wp_Rss_Bridge_Processor($bridges, 60, "User Agent");

Bridges

Each bridge has its own settings, defined in its own PHP class in RSS Bridge. See RSS Bridge Documentation and source code for more informations.

Filters

Settings can also be changed using filters :

$user_agent = apply_filters('wp-rss-bridge_user_agent', $user_agent);
$bridges = apply_filters('wp-rss-bridge_bridges', $bridges);
$cache_timeout = apply_filters('wp-rss-bridge_cache_timeout', $cache_timeout);