All Projects → martin-georgiev → Social Post Bundle

martin-georgiev / Social Post Bundle

Licence: mit
Symfony bundle to publish status updates on Facebook, LinkedIn and Twitter.

Projects that are alternatives of or similar to Social Post Bundle

Hackathon Starter Kit
A Node-Typescript/Express Boilerplate with Authentication(Local, Github, Facebook, Twitter, Google, Dropbox, LinkedIn, Discord, Slack), Authorization, and CRUD functionality + PWA Support!
Stars: ✭ 242 (+591.43%)
Mutual labels:  linkedin, twitter, facebook
Ultimate Metatags
A large snippet for your page's <head> that includes all the meta tags you'll need for OPTIMAL sharing and SEO. Extensive work has been put into ensuring you have the optimal images for the most important social media platforms.
Stars: ✭ 24 (-31.43%)
Mutual labels:  twitter, facebook, social-network
cakephp-social-share
CakePHP link generator for sharing content on social networks
Stars: ✭ 30 (-14.29%)
Mutual labels:  facebook, twitter, linkedin
Social Login Helper Deprecated
A simple android library to easily implement social login into your android project
Stars: ✭ 81 (+131.43%)
Mutual labels:  linkedin, twitter, facebook
Laravel Social Auto Posting
🌈Laravel social auto posting
Stars: ✭ 306 (+774.29%)
Mutual labels:  twitter, facebook, social-network
Daily Coding Problem
Series of the problem 💯 and solution ✅ asked by Daily Coding problem👨‍🎓 website.
Stars: ✭ 90 (+157.14%)
Mutual labels:  linkedin, twitter, facebook
Social Network Harvester V1.0
Stars: ✭ 5 (-85.71%)
Mutual labels:  twitter, facebook, social-network
Network Avatar Picker
A npm module that returns user's social network avatar. Supported providers: facebook, instagram, twitter, tumblr, vimeo, github, youtube and gmail
Stars: ✭ 74 (+111.43%)
Mutual labels:  twitter, facebook, social-network
Social ids
Get user ids from social network handlers
Stars: ✭ 9 (-74.29%)
Mutual labels:  twitter, facebook, social-network
Data-mining-python-script
It contain various script on web crawling/ data mining of social web(RSS,facebook,twitter,Linkedin)
Stars: ✭ 24 (-31.43%)
Mutual labels:  facebook, twitter, linkedin
Keyring
Keyring is an authentication framework for WordPress. It comes with definitions for a variety of HTTP Basic, OAuth1 and OAuth2 web services. Use it as a common foundation for working with other web services from within WordPress code.
Stars: ✭ 52 (+48.57%)
Mutual labels:  linkedin, twitter, facebook
Yii2 Authclient
Yii 2 authclient extension.
Stars: ✭ 430 (+1128.57%)
Mutual labels:  linkedin, twitter, facebook
Sharer.js
🔛 🔖 Create your own social share buttons. No jquery.
Stars: ✭ 1,624 (+4540%)
Mutual labels:  twitter, facebook, social-network
Login With
Stateless login-with microservice for OAuth
Stars: ✭ 2,301 (+6474.29%)
Mutual labels:  linkedin, twitter, facebook
Easylogin
Login effortlessly with different social networks like Facebook, Twitter or Google Plus
Stars: ✭ 90 (+157.14%)
Mutual labels:  twitter, facebook, social-network
stay-productive
Remove feed from Facebook, Twitter and Linkedin... To stay productive !
Stars: ✭ 15 (-57.14%)
Mutual labels:  facebook, twitter, linkedin
oauth
Allow users to log in with GitHub, Twitter, Facebook, and more!
Stars: ✭ 21 (-40%)
Mutual labels:  facebook, twitter, linkedin
Social Media Profiles Regexs
📇 Extract social media profiles and more with regular expressions
Stars: ✭ 324 (+825.71%)
Mutual labels:  linkedin, twitter, facebook
Socioboard 4.0
Socioboard is world's first and open source Social Technology Enabler. Socioboard Core is our flagship product.
Stars: ✭ 475 (+1257.14%)
Mutual labels:  linkedin, twitter, social-network
Alicebundle
A Symfony bundle to manage fixtures with Alice and Faker.
Stars: ✭ 742 (+2020%)
Mutual labels:  symfony, symfony-bundle

Scrutinizer Code Quality Build Status Coverage Status Latest Stable Version Total Downloads

Upgrading?

Check the upgrade guide.


What's this?

This is a Symfony bundle written in PHP 7.1 that wraps 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?

Recommended way is through Composer

composer require martin-georgiev/social-post-bundle

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
<?php
// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new \MartinGeorgiev\SocialPostBundle\SocialPostBundle(),
        ];
        return $bundles;
    }
    // ...
}

Post a test message

# Some Symfony container aware class
<?php
//...
$message = new \MartinGeorgiev\SocialPost\Message('your test message');
$container->get('social_post')->publish($message);

Additional help

Twitter has limited features for tweet customisation. This means that for tweets only message and link values (MartinGeorgiev\SocialPost\Message instance) will be used.

Facebook doesn't support non-expiring user access tokens. Instead, you can obtain a permanent page access token. When using such tokens you can act and post as the page itself. More information about the page access tokens from the official Facebook documentation. Some Stackoverflow answers (here and here) also can of help.


License

This package is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].