Setup/Installation: Facebook - Social Networks Auto-PosterHow to setup Facebook in SNAP WordPress plugin and API
What API to use
You can chose what API to use. (Please see here why there are two different APIs for Facebook.)
1. Native Facebook API: Free official built-in API from Facebook. Can post to profiles and pages. (No Groups). Very complicated to setup. Buggy and unstable. Your site must use HTTPS.
2. NextScripts API for Facebook: Premium API with extended functionality. Can post to Profiles, Pages and Groups. Very easy to setup. No restrictions of native API.
Native Facebook API Configuration instructions
This page is for Official native Facebook API. Please see here for NextScripts API for Facebook Configuration
The Facebook Platform uses OAuth 2.0 for authentication and authorization. You need to setup Facebook Application and connect this application to your blog and authorize it.
Native Facebook API could post:
1. Facebook Profile.
2. Facebook Pages (all kinds) (User who authorized the plugin must be an admin of the page).
** Looking for an ability to post to groups? Please see here: NextScripts API for Facebook
1. Create a Facebook App for your website.
1.1. Login to your Facebook account.
1.2. Go to the Developers page: https://developers.facebook.com/
If you are not registered as “Developer” yet, you need to click blue button “Register”. Click here to see the Register as a Developer instructions, otherwise proceed to the step #3.
Register as a Developer
1. Click blue button “Register”.
2. Accept the policy, click “Register”.
3. Solve captcha and/or confirm your phone number (if asked).
4. You are now a Facebook Developer.
FAQ: Question: Why I can’t create an app on developers.facebook.com/apps ? When I am trying to enter that page it redirects me back to my account?
Answer: Facebook “Business” or “Advertising” accounts can’t manage apps. Only real user accounts are able to create and manage apps. Please login to Facebook as a personal account to be able to create app.
1.3. Click “My Apps -> Add a New App” menu item.
Fill “App Name” and “Contact email”. Agree to policies and click “Create App ID”, solve captcha (if asked), click “Submit”.
Important: Please use your own information, don’t literally re-type our email, “SNAP”, “NextScripts Blog”, “NextScripts.com” and other sample info.
1.4. No need to add any products yet, just click “Settings”->Basic on the left.
– Notice App ID and App Secret (Click “Show”, enter your password (if asked)) on this page.
– Fill “Contact email” field (if empty), then click “Add Platform”.
1.5. Select “Website” in the list.
Enter your full website URL to the “Site URL” field.
Enter your domain to the App Domains. Domain should be the same domain as the URL that you have entered to the “Site URL”.
Important!: You must enter the URL and domain that you see in your WordPress Admin Panel. For example your visitors come to your blog at https://blog.nextscripts.com, but you manage your blog from https://www.nextscripts.com/blog/wp-admin/ – you must enter https://www.nextscripts.com/blog to the URL Field and www.nextscripts.com as the domain. Also please note that nextscripts.com and www.nextscripts.com are two different domains.
Important!!! Again, Please use your own information, don’t literally re-type “NextScripts Blog”, “NextScripts.com” and other example info.
“Important” Please also enter your contact email. You won’t be able to make public posts without entering email.
Click “Save Changes”
1.6. Click (+) next to the “Products” in the left menu.
You should see the “App Dashboard”->Add a Product page. Please click “Set up” in the “Facebook Login” product box.
1.7. Choose “Web” from the “Platform” selection
1.8. You should see your site’s URL. If not, please enter the URL of your site to the “Site URL” field. Click “Save”.
Important: Please enter the URL of your own website. Do not enter NextScripts.com
1.9. Click “Settings” under “Facebook Login” in the left side menu. Please enter the URL of your SNAP Plugin “Accounts” page to the “Valid OAuth redirect URIs” field. Click “Save changes”.
FAQ: What is “URL of your SNAP Plugin “Accounts” page” and how to find it?
Please go to your WP Admin panel and click on “Accounts” under the SNAP|Autoposter in the left side menu. The URL of that page is the “URL of your SNAP Plugin “Accounts” page”
If you are still using http, please turn off (Set to “No”) “Enforce HTTPS for Web OAuth Login”
1.10. All Facebook apps are in “Development” mode by default. All posts will be visible only to to Admins, Developers and Testers. You need to take an app “Live” if/when you would like your posts to be seen by everybody.
Click “App Review” on the left. Change “Make APPNAME public?” switch from “No” to “Yes”.
Click “Save Changes“.
Your App is ready to use.
Just to avoid any confusion. You don’t need to submit your app for review and approval. Review and approval are required ONLY for apps that will be used publicly by other people. SNAP will be authorized and make posts ONLY as you (as the admin of the app). No review and approval are necessary for admin usage.
2. Connect Facebook to your WordPress.
2.1. Login to your WordPress Admin Panel, Go to the Settings->Social Networks AutoPoster Options.
2.2. Click green “Add new account” button, select “Facebook” from the list.
2.3. Fill “App ID” and “App Secret” from step 4 above.
2.4. Click “Authorize Your Facebook Account” and follow the authorization wizard. Facebook will ask you series of questions. If you get any errors at this step, please make sure that domain for your WordPress site is entered to your App as “App Domain”.
Important: If Facebook tell you that you need to switch to your main account, you will need to close the wizard, go to facebook.com, switch account, and then start authorization from the beginning.
[Update – May 2014] Facebook changed some rules regarding the apps. This means that the Facebook App, Facebook profile or page and the user who authorizes the app MUST belong to the same Facebook account. So please make sure you are logged to Facebook as the same user who created the app.
Important: When Facebook Authorization Wizard asks you for the access privileges to your profile/pages, do not uncheck anything and don’t click “Skip”.
Facebook don’t have the ability to request permission to just one page. It’s either all of them or none. If you click “Skip” it means you forbid Facebook from posting to any of your pages, groups or profiles.
Our plugin will post only to the page that you specify.
Note (Again): Please don’t pay attention to the red message on top of the screenshot above, you don’t need to submit your app for review if you will be posting to the profile and pages you admin.
2.5. Your Facebook account is ready to post to your Profile.
2.6. [Optional] Find your new account in the list and click [Show Settings]. Notice new “Where to Post” dropdown showing your pages and groups. Select Profile or one of the pages or groups and click “Update Account Info”.
If your page or groups is NOT in the list please see how to add it here: Why Page/Group is not in the list and how to add it
Facebook Error: “URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs”
Please check #9 of instructions again. The value of the “Valid OAuth redirect URIs” field does not match the actual URL of your SNAP Plugin “Accounts” page.
Please see more issues in the “Troubleshooting FAQ”
Instagram made some very big changes to authentication process. About 70% of our users are affected by them. Before the changes the process was quite simple: Sometimes Instagram decided that login from SNAP is "unusual" and asked for confirmation. You just had to open...
Sometimes Instagram decides that login from SNAP is "unusual" and asks for confirmation. Until yesterday, you just had to open Instagram on your phone and tap "This was me" button on "We have detected an unusual login attempt" screen. Yesterday this stopped working....
SNAP for WordPress Version 4.1 has been released. This version adds support for WPML and Polylang in filters and one new network - Messenger Line. It also eliminates the necessity to "Save" WordPress post after making changes to SNAP message format. == Changelog == =...
SNAP for WordPress Version 4 has been released. This is the biggest SNAP update ever. Almost 100% of the code was re-written. - New Autoposting Engine. Faster and 180% more efficient engine. It takes less memory and resources to preform autoposting jobs. - Old Posts...
The final release date for the long awaited SNAP WordPress Plugin Version 4 is set for October 1, 2017. The first closed beta version is available today. The first public beta version will be available on August 31, 2017. Here is the full release schedule: Version 4...