Skip to content

ahmic/nova-to-buffer

Repository files navigation

A Laravel Nova tool to send posts to Buffer

Tired of manually posting links to social networks? This package enables "one click" posting to social networks from Nova dashboard, through Buffer service.

Buffer is a software application for the web and mobile, designed to manage accounts in social networks, by providing the means for a user to schedule posts to Twitter, Facebook, Instagram, and Linkedin, as well as analyze their results and engage with their community. Wikipedia

They offer a free plan for one user and up to three social accounts

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require ahmic/nova-to-buffer

Usage

1. Add Buffer access token and profile id(s) to the Laravel's config/services.php file

// ...

'buffer' => [
    'access_token' => env('BUFFER_ACCESS_TOKEN'),
    'profile_ids' => env('BUFFER_PROFILE_IDS')
]

.env example, put your own ids and token in following format

BUFFER_PROFILE_IDS="5d13f781311f3c645456771e,5d1540124a12c7tr141dbd22"
BUFFER_ACCESS_TOKEN="1/34443f37tgf907fc1051e0d635e53b1e"

2. To enable share component for specific model, you'll need to add the tool to that model's Nova resource. Make sure to specify the class name so the resource tool can load it properly.

Replace _URL_ with publicly accessible url for your model.

use Ahmic\NovaToBuffer\NovaToBuffer;

// ...

NovaToBuffer::make()
    ->url(_URL_)

Example config('app.url').'/posts/'.$this->slug to get https://yourdomain.com/posts/model-slug Construct it according to your url scheme.

3. All set! Visit detail screen of your model resource, populate fields and click "Send update".

Screenshots

Post screen

Success

Changelog

Please see CHANGELOG for more information on what has changed recently.

Plans

  • Option for automatic posting
  • Selecting social channels to post
  • Multiple text input fields for different social channels
  • Scheduling

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A Laravel Nova tool for sending posts to Buffer

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages