oualidstorytile/socialmedia

v1.1 2021-08-25 00:01 UTC

This package is auto-updated.

Last update: 2024-04-25 06:04:21 UTC


README

Storytile socialmedia provides an interface to OAuth authentication and search with Facebook, Instagram and Twitter.

You need to create an application (Facebook, Twitter) and create your credentials in the your project file ".env"

Installation

composer require oualidstorytile/socialmedia

Configuration

  • Add the file Database/migrations/2021_08_10_130951_create_user_socials_table.php to your migrations folder(rename the table if the name is used) and run migration
  • Add the file config/socialmedia.php to your laravel project configuration.
  • Set the below environment variables in your .env.
FACEBOOK_APP_ID=
FACEBOOK_APP_SECRET=
FACEBOOK_REDIRECT_URL=

INSTAGRAM_REDIRECT_URL=

TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=

to get data take a look on Exemple/Socialcontroller.php

Storytile Socialmedia is open-sourced software licensed under the MIT license.