marvinosswald / laravel-socialmedia
A laravel adapter for social media networks
0.3.0
2016-07-19 14:46 UTC
Requires
- abraham/twitteroauth: ^0.6.4
- dirkgroenen/pinterest-api-php: ^0.2.11
- facebook/php-sdk-v4: ^5.2
Requires (Dev)
- guzzlehttp/guzzle: ~6.0
- orchestra/testbench: ~3.2
- phpunit/phpunit: ^5.4
- vlucas/phpdotenv: ^2.3
This package is not auto-updated.
Last update: 2024-04-22 04:52:32 UTC
README
#laravel-socialmedia
The first step will be to implement a post function for each Driver and on this way a matching delete function for testing reasons.
Install
'providers' = [
...
marvinosswald\Socialmedia\Providers\SocialmediaServiceProvider::class
],
'aliases' = [
...
'Socialmedia' => marvinosswald\Socialmedia\Facades\Socialmedia::class
]
Usage
Socialmedia::post($params,$drivers=[]);
Drivers
Socialmedia Network Drivers, in the process I would like to craft somekind of unified api for all of them
Obtain permanent Access Token: http://stackoverflow.com/a/28418469
Settings
ENV Variables
- FACEBOOK_APP_ID
- FACEBOOK_APP_SECRET
- FACEBOOK_ACCESS_TOKEN
Obtain permanent Access Token: https://dev.twitter.com/oauth/overview/application-owner-access-tokens
Settings
ENV Variables
- TWITTER_ACCESS_TOKEN
- TWITTER_ACCESS_TOKEN_SECRET
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
How to get an access token:
- Create Developer Account here
- Create App and get app_id & app_secret from app details page
- Issue new token
Settings
ENV Variables
- PINTEREST_APP_ID
- PINTEREST_APP_SECRET
- PINTEREST_ACCESS_TOKEN