Setting up your social media accounts
This step is required so that you can register any number of clients with multiple social media accounts through the dashboard.
You will need a facebook account
- Open Facebook Developer Console
- Create a new application
- Click the "My Apps" dropdoown
- Click "+ Add a New App" button
- Select platform
- Enter new project name
- Click "Create New Facebook App ID"
- Select a category for your application
- Click "Create App ID"
- Add the "App ID" and "App Secret" to the .env file in the root folder as FACEBOOK_APP_ID and FACEBOOK_APP_SECRET respectively e.g.
- In the settings section of the facebook console, you also need to add the website you will be using it from.
Now you and any of your clients who use facebook can post to any of their pages, profiles or groups - once they've synced their account. There are two choices for synching the accoun, you can either:
- submit your app for review to facebook: https://developers.facebook.com/docs/facebook-login/review/how-to-submit/ This means you can use your own App id/secret for any number of clients. or
- alternatively you can insert the FACEBOOK_APP_ID and FACEBOOK_APP_SECRET for each client in the '/groups' page. This means you don't need facebook verification and you can post as the clients' brand name.
In some cases you may get an error "Can't Load URL: The domain of this URL isn't included in the app's domains.". If so, please do the following: In products "facebook login", "Client OAuth Login", "Web OAuth Login" and "Embedded Browser Oauth Login" are set to "Yes". 'Use Strict Mode for Redirect URIs' to 'No' Add your domain to 'Valid OAuth redirect URIs' http://yourdomain.com/ Leave the Website > Site URL as http://yourdomain.com/
Go to https://dev.twitter.com/ and login
Hover on your avatar up in the right corner and select “my applications” in the dropdown menu.
Click “Create a new application”
Fill out name, description and website. Set the callback URL to "http://warbler.yourdomain.com/twitter/callback", accept the terms and create the app.
On the new page, in the middle you should now have both “consumer key” and “consumer secret”. This is the key and secret you need for to be able to use the Twitter API.
Cope the values and add to the .env file
TWITTER_CONSUMER_KEY= TWITTER_CONSUMER_SECRET= TWITTER_ACCESS_TOKEN= TWITTER_ACCESS_TOKEN_SECRET=
For Instagram it uses the android API, so you need to enter your username and password in to the dashboard to start posting.
Please note, you may need a proxy if you don't have a dedicated or residential IP.
For paid users, copy the "vendor/mgp25/instagram-php" from the free version to the paid version "vendor/mgp25/instagram-php". Same directory. I cannot include it in the paid version as it's a third-party library with RPL license.