oualidstorytile / socialmedia
Social media
v1.1
2021-08-25 00:01 UTC
Requires
- php: ^7.2
- ext-json: *
- guzzlehttp/guzzle: ^6.0|^7.0
- illuminate/http: ^6.0|^7.0|^8.0
- illuminate/support: ^6.0|^7.0|^8.0
Requires (Dev)
- illuminate/contracts: ^6.0|^7.0
- mockery/mockery: ^1.0
- orchestra/testbench: ^4.0|^5.0|^6.0
- phpunit/phpunit: ^8.0|^9.3
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.