2017 © Pedro Peláez
 

library social2atom

Convert social networks to atom feed

image

rakshazi/social2atom

Convert social networks to atom feed

  • Tuesday, February 2, 2016
  • by rakshazi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Social networks 2 Atom feed converter

SensioLabsInsight, (*1)

Convert social network feeds to atom feed., (*2)

Status list:, (*3)

  • Vk.com: support post, audio, video, photo, link attachments
  • Facebook.com: support post (only text for this moment) from pages

Installation

composer require rakshazi/social2atom:dev-master, (*4)

Usage

$s2a->setConfig() is optional for vk, but if you want see video and audio - it's required., (*5)

<?php
require 'vendor/autoload.php';
$url = "https://vk.com/apiclub"; //VK group url
$s2a = new \Rakshazi\Social2Atom;
$s2a->setConfig(array(
    'general.audio.enclosure' => false, //Add audio files as post content, not as atom entry element (recommended)
    //For VK.com (Only if you really need it)
    'vk.count' => 100, //Maximum count of posts per feed
    'vk.token' => 'YOUR TOKEN', //Needed only for video and audio
    //For Facebook.com (Only if you really need it)
    'facebook.count' => 100,
    'facebook.token' => 'YOUR TOKEN', //Needed for all, use App Token
));
$atomFeedXML = $s2a->convert($url);

echo $atomFeedXML;

Some implicit reasons (FAQ)

Q: How to get vk.com token?, (*6)

A: Read all info here: https://vk.com/dev/auth_sites, you need following scopes: video,offline, (*7)

Q: How to get facebook.com token?, (*8)

A: Create app (for websites) and get it token (App token) here: https://developers.facebook.com/tools/accesstoken/, (*9)

Q: Why no API libraries were used?, (*10)

A: Because API library contains a lot of unnecessary (for this project) things, (*11)

and (owing to first part of answer) a lot of unnecessary dependencies., (*12)

The Versions

02/02 2016

dev-master

9999999-dev https://github.com/rakshazi/social2atom

Convert social networks to atom feed

  Sources   Download

MIT

The Requires

 

02/02 2016

1.0

1.0.0.0 https://github.com/rakshazi/social2atom

Convert social networks to atom feed

  Sources   Download

MIT

The Requires

 

29/01 2016

1.0-beta

1.0.0.0-beta https://github.com/rakshazi/social2atom

Convert social networks to atom feed

  Sources   Download

MIT

The Requires