How to Create a Facebook Application for Social Media Smart Share Plugin?
Due to Facebook policy changes which are affecting all users; you’d need to put your app in Live mode to connect to your website. Doing so, however, requires a review of your app from Facebook.
See here on how to submit your Facebook app for review: How To Go Through The Facebook Review Process
This article shows you how to create a Facebook App for Smart Share Plugin. The instructions on your current plugin might be different so you can follow the instructions step by step below the video.
NOTE: As of May 2018 all-new Facebook applications require your domain to be HTTPS. You can achieve this by installing an SSL Certificate on your website.
Facebook requires you claiming the authority of the domain which you use for your website if you intend to share posts with images to Facebook. To do this is simple and the Instructions can be seen on this page: https://developers.facebook.com/docs/sharing/domain-verification
IMPORTANT LINK:
- To create a Facebook App, go and visit: http://developers.facebook.com/
- This is a really nice video tutorial for Creating Facebook Application
Facebook Apps Creation
Follow the below steps to create a Facebook App and generate App ID & App Secret.
Step 1: Go to the Facebook for Developers page and login with your Facebook account.
Note: You need to use a personal Facebook Account for creating an App. A business account won’t work. Your personal account needs to be a verified Facebook account. If your account isn’t verified yet, you’ll receive a text message from Facebook to verify your account. So make sure, that you have a mobile number set within your account, otherwise you won’t be able to create an App.
Step 2: At the right corner of the top navigation bar, click the My Apps link and select Add New App.
- Enter the Display Name and Contact Email.
- Click the Create App ID button.
- The new App will be created and redirected to the Facebook App Dashboard.
Step 3: Navigate to the Settings » Basic page.
- Now it will redirect to the “Add Product” page and in this page click the “Set Up” button in “Facebook Login”.
Step 4: Navigate to the Settings » Basic page.
- In-App Domains field, specify the domain name of your website (ex:
test.com
). - In Privacy Policy URL field, specify the privacy policy web page URL for login dialog (ex:
https://www.test.com/privacy-policy/
) - Select the Category of your App.
- Click the Save Changes button.
Step 5: Navigate to the Facebook Login » Settings page.
- Go to the Client OAuth Settings section. In the Valid OAuth Redirect URIs field, specify the Redirect URL of your OAuth application (ex: https://{site-url}/wp-admin/admin.php?page=smartshare-accounts) as OAuth redirect URI in the facebook settings
- After entering the OAuth redirect URI and enable the “Client OAuth Login and Web OAuth Login”.
- Click Save Changes.
Step 6: Change App Status:
- By default, the App will be In Development mode. To change the App status in Live, click the toggle switch at the top header.
- On click the Status On/OFF switch, a confirmation dialog will appear. Confirm to make your app public.
- Navigate to the Settings » Basic page, copy the App ID and App Secret. This App ID and App secret are required to access the Facebook APIs.
- The App ID and App Secret are now ready.
Step 7: Enter App ID and App Secret key in the smart share plugin account setting. After that, you can share social post automatically by smart share plugin.