PHPackages                             martin-georgiev/social-post-bundle - 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. martin-georgiev/social-post-bundle

AbandonedArchivedSymfony-bundle

martin-georgiev/social-post-bundle
==================================

Symfony bundle for simultaneous posting of the same message to Facebook, LinkedIn and Twitter

v3.1.0(5y ago)396.7k17[2 issues](https://github.com/martin-georgiev/social-post-bundle/issues)[3 PRs](https://github.com/martin-georgiev/social-post-bundle/pulls)MITPHPPHP ^7.2

Since Mar 17Pushed 4y ago5 watchersCompare

[ Source](https://github.com/martin-georgiev/social-post-bundle)[ Packagist](https://packagist.org/packages/martin-georgiev/social-post-bundle)[ RSS](/packages/martin-georgiev-social-post-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (8)Dependencies (12)Versions (12)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/03c538ea452f2c9d8d10c4eb42ef52554aae063dc5c22720c5660b3895f15345/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d617274696e2d67656f72676965762f736f6369616c2d706f73742d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/martin-georgiev/social-post-bundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/4a065e9b1f3dfac47a1a8e8d03976a5e6e2be179f1f33836c2ed30e8c4d16548/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d617274696e2d67656f72676965762f736f6369616c2d706f73742d62756e646c652e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.org/martin-georgiev/social-post-bundle)[![Coverage Status](https://camo.githubusercontent.com/f99b54bf75fb29da7c345deaa37ac4c7025a6bbef117661f58e8b06df4675531/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d617274696e2d67656f72676965762f736f6369616c2d706f73742d62756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/martin-georgiev/social-post-bundle?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/077c08babe40f2a6a2e14c4ba549ef57fa58dab3d90f9de16232861dcb103b8f/68747470733a2f2f706f7365722e707567782e6f72672f6d617274696e2d67656f72676965762f736f6369616c2d706f73742d62756e646c652f76657273696f6e)](https://packagist.org/packages/martin-georgiev/social-post-bundle)[![Total Downloads](https://camo.githubusercontent.com/8cb2e4f73cd44b3bd93c9c163af2a8879df81c4a0ec14f5b548678a31a27df4f/68747470733a2f2f706f7365722e707567782e6f72672f6d617274696e2d67656f72676965762f736f6369616c2d706f73742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/martin-georgiev/social-post-bundle)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#)

Upgrading?
----------

[](#upgrading)

Check the [upgrade guide](UPGRADE-GUIDE.md).

---

What's this?
------------

[](#whats-this)

This is a [Symfony](https://www.symfony.com) bundle written in [PHP 7.1](https://secure.php.net/manual/en/migration71.new-features.php) that wraps [martin-georgiev/social-post](https://github.com/martin-georgiev/social-post) - an easy way for simultaneous publishing to multiple social networks. Currently, it integrates with Facebook, LinkedIn and Twitter.

---

How to install it?
------------------

[](#how-to-install-it)

Recommended way is through [Composer](https://getcomposer.org/download/)

```
composer require martin-georgiev/social-post-bundle

```

---

Integration with Symfony
------------------------

[](#integration-with-symfony)

*Add social networks configuration*

```
# Usually part of config.yml
social_post:
    publish_on: [facebook, linkedin, twitter]         # List which Social networks you will be publishing to and configure your access to them as shown below
    providers:
        facebook:
            app_id: "YOUR-FACEBOOK-APP-ID"
            app_secret: "YOUR-FACEBOOK-APP-SECRET"
            default_access_token: "YOUR-FACEBOOK-NON-EXPIRING-PAGE-ACCESS-TOKEN"
            page_id: "YOUR-FACEBOOK-PAGE-ID"
            enable_beta_mode: true
            default_graph_version: "v2.8"             # Optional, also supports "mcrypt" and "urandom". Default uses the latest graph version.
            persistent_data_handler: "memory"         # Optional, also supports "session". Default is "memory".
            pseudo_random_string_generator: "openssl" # Optional, also supports "mcrypt" and "urandom". Default is "openssl".
            http_client_handler: "curl"               # Optional, also supports "stream" and "guzzle". Default is "curl".
        linkedin:
            client_id: "YOUR-LINKEDIN-APP-CLIENT-ID"
            client_secret: "YOUR-LINKEDIN-APP-CLIENT-SECRET"
            access_token: "YOUR-LINKEDIN-60-DAYS-LONG-USER-ACCESS-TOKEN"
            company_page_id: "YOUR-LINKEDIN-COMPANY-PAGE-ID"
        twitter:
            consumer_key: "YOUR-TWITTER-APP-CONSUMER-KEY"
            consumer_secret: "YOUR-TWITTER-APP-CONSUMER-SECRET"
            access_token: "YOUR-TWITTER-ACCESS-TOKEN"
            access_token_secret: "YOUR-TWITTER-ACCESS-TOKEN-SECRET"

```

*Register the bundle*

```
# Usually your app/AppKernel.php
