1. Home
  2. Docs
  3. Social Media Auto Publish
  4. FAQ
  5. How can I create Facebook application?

How can I create Facebook application?

Note 1: Due to Facebook Restriction we can use the new Facebook App in HTTPS sites only.

Note 2: With the facebook app we can publish to Facebook Pages only and we cannot publish to facebook profile.

Note 3: We can publish to facebook with the approved app only. So we need to submit the app for approval and it may take upto 3 months to get the approval. Alternate solution is available in How can I use the alternate solution for publishing posts to facebook?

Section 1 : Facebook App Creation

Section 2: App Review Section (Submission of app for approval)

Section 3 : App Authorization

Section 1: Create Facebook App

To create a new facebook application ,go to the link https://developers.facebook.com/apps or https://developers.facebook.com/

Step 1:

Click on the “Create New App/ Add a New App” link.
apps

Step 2:

Enter the App Display Name and the contact email and click the “Create App ID”.

create app id

Step 3:

Now it will redirect to the “Select Scenario” page and in this page click the “Products +” option.

select scenario

Now “Add a Product” section is visible and then click the “Set Up” button in “Facebook Login”.

add a productStep 4:

Click the “Web” button.

fb app web

Step 5:

In the “Site URL” section add your site url and save it.

(Note: You can see your site URL in the top of the plugin facebook settings. See the below image)

step 10

site url

Note: If the “Quickstart” page is blank and you cannot enter the domain url, please go to “Settings > Basic” section, just below the Dashboard and then click the “Add Platform” as shown below.

add platform

Then select the “website” as given below.

select website

In this page you can add the site url and save it.

add website

Step 6:

Click on the “Facebook Login >Settings” link as shown below.

Here enter the “Valid OAuth redirect URIs”.

Note : You can see the OAuth redirect URI in the top of the account settings in the plugin.

OAuth redirect URI

Please use this OAuth redirect URI in the facebook settings.

oAuth redirect URL

Please note that Client OAuth Login and Web OAuth Login should be is YES position.

After entering the redirect URIs, please save the changes.

Step 7:

The app is created now but we need to add some more parameters to submit the app for approval.. Click the “Settings > Basic” link in the menu to see the app id and secret.

basic settings

In this page we can see the App ID and App Secret.

Click the “Show” button to see the App Secret. (The app secret is in alphanumeric and DON’T use ******* as App Secret.)

We also need to add the privacy policy url, terms of service url, select category etc. in this section.

For the option “Business Use”, please select “Support my own business”.

Section 2: Facebook App Review

Step 8:

Here the app is in development mode. Only the developer can view the posts now.

We need to “submit the app for approval” and after the app get approved, we can make the app public and the users can see the posts in the facebook.

The App Review Process Submission is given below.

1: Click on the “App Review > Current Request” and then the “Add additional permissions and features” link.

app review

2: Now it will redirect to the all permissions and features page and in this we can select the  pages_read_engagement and  pages_manage_posts permissions and click on the “Request” button. (For the PREMIUM plugin we need 2 additional permissions for publishing the posts to groups – publish_to_groups and Groups API)

1-App_Review_Facebook_for_Developers

3: Now you can see the continue button after the request and click on it.

2-App_Review_Facebook_for_Developers

4. Click on each permission and you can add the details of each item.

3-App_Review_Facebook_for_Developers

4 A : Details for pages_read_engagement 

4-App_Review_Facebook_for_Developers

  • For the question “Please provide a detailed description of how your app uses the permission or feature requested, how it adds value for a person using your app, and why it’s necessary for app functionality.”, please use the answer “The app uses this permission to  get the metadata about the page managed by the user(such as  page id , publicly available page content such as post id ,content posted by page ,page name and PSIDs ).Once the app is authorized to use then we would be able to publish content to Pages owned by the admin from the authorized user’s WordPress site and track the auto published post.This will reduce the time required to publish each post content manually to the admin’s Facebook pages ”.
  • Now upload a video screencast of the procedure.
    A sample video screencast is given in https://youtu.be/EuA8BTzW-B0.
  • After adding the details click on the save button.

4 B : Details for pages_manage_posts

  • For the question “Please provide a detailed description of how your app uses the permission or feature requested, how it adds value for a person using your app, and why it’s necessary for app functionality.”, please use the answer “The app uses this permission to  Publish a post, photo, or video to your Page .Once the app is authorized to use then we would be able to publish content to Pages owned by the admin from the authorized user’s WordPress site and track the auto published post.This will reduce the time required to publish each post content manually to the admin’s Facebook pages ”
  • Now upload a video screencast of the procedure.
    A sample video screencast is given in https://youtu.be/EuA8BTzW-B0.
  • After adding the details click on the save button.

4C : Details for publish_to_groups (Only for premium plugin – for publishing to groups)

  • For the question “Please provide a detailed description of how your app uses the permission or feature requested, how it adds value for a person using your app, and why it’s necessary for app functionality”, use the answer “To publish WordPress blog posts to Facebook groups managed by the app’s admin. And allows apps to post content into a group on behalf of a person if they’ve granted your app access. This will help people manage the content published to their group.
  • Now upload a video screencast of the procedure.
    A sample video screencast is given in https://youtu.be/sjrTFF9uElc
  • After adding the details click on the save button.

4D : Details for Groups API (Only for premium plugin – for publishing to groups)

  • For the question “Tell us how you’re using this permission or feature” use the answer “To get the groups details and publish WordPress blog posts to Facebook groups managed by the app’s admin using plugin.Groups API is required to access content in a Facebook Group. This will help to manage the posts and content published to the group or to get information about content posted to in their group. It can also be used to let admin to publish content from the app to their Facebook group.The app uses the Group API feature with the  publish_to_groups  permission.
  • Now upload a video screencast of the procedure.
    A sample video screencast is given in https://youtu.be/sjrTFF9uElc
  • After adding the details click on the save button.

4 E : Complete App Verification and Settings

5-App_Review_Facebook_for_Developers

In the section ’Provide verification details’ we can provide verification details and review the app settings.

6-App_Review_Facebook_for_Developers

In the detailed step-by-step instructions, please use the detailed steps.

Sample detailed step-by-step instructions are given below:

  1. Go to https://sampledomain.com/wp-login.php
  2. Login as an administrator with

        password:   <password>.

        user name: <user name>

  1. Go to https://sampledomain.com/wp-admin/admin.php?page=social-media-auto-publish-manageaccounts&action=add-account&type=1  where user has to enter the required settings and authorize the application from the plugin’s settings page.
  2. Enter the application name and settings ,then click on the button ‘Save and Authenticate’.  The “facebook login” is renamed as authorization here.
  3. It will take you to Facebook authorization procedure.
  4. Upon successful authorization ,if you manage Facebook pages/groups, you will be prompted to select the facebook pages/groups to which you need updates to be published.
  5. After selecting Facebook pages/groups ,you will be returned to the website.
  6. After the authorization is complete,make a post in website by following below steps,

     8.1 : Go to https://sampledomain.com/wp-admin/post-new.php

     8.2 : Fill in some title and content ,and image to post ,then click the ‘publish’ button on the right side.    The new post will be published on the website as well as on Facebook Group.

In this section ’Review Your App Settings’ ,  you can review the app settings by adding App Icon, Privacy Policy URL, Category etc.

7-App_Review_Facebook_for_Developers

After entering the details, please save it. Now we can submit the app for review.

8-App_Review_Facebook_for_Developers

9-App_Review_Facebook_for_Developers

Accept the terms and submit. The app is now submitted for approval.

Note 1: It may take some to get the app approved by facebook. (5 days – 3 months).

Note 2: If you are getting any response from facebook saying that the “Facebook Login” option is not present in the page, please tell them the “facebook login” is renamed as authorization here and when click on the authorize button, the facebook login is executing.

Step 9:

After review by facebook, they will ask to enter the business details. (At the time of app submission this option is not available. We can see this after the review of facebook)

You can see the details in

If you find it difficult to submit the app for approval, you can opt for an alternate paid solution and the details are available in

Once the app gets approved, you can see the permissions approved with a green bubble under the “App Review > My Permissions and Features”.

10-App_Review_Facebook_for_Developers

Now make the app “Live”

To make the app ‘Live/Public’, please go to the ‘App Review‘ page.

step 7

In this page please select the ‘Live/Public’ mode by selecting the ‘YES’ button and a ‘green indicator’ will display next to the app name as in the below image.

step 9

You can now use the facebook app keys in the plugin.

Now enter these keys in the plugin settings in your site.

After entering the keys in the facebook settings page, you need to “Authorize” the account. (The authorization section is present in the wordpress plugin section).

You can see the FB pages in the settings page only after authorizing your FB account.

Note: To publish the posts to groups you need to connect the app to the group and you can see the details in How can I add or remove an app from a group that I manage?

Section 3: App Authorization

When you click on the “Authorize” button, it will redirect to a facebook popup dialog box. (In some cases the interface will be different and the new interface is given from Step A)

Step 1:

step1

There are some warnings and you can ignore the warning and click the “OK” button.

Step 2:

step 2

Select the “Public” option and click OK.

Step 3:

step 3

In the step 3 click OK and the authorization is complete.

Now you can see all your fb pages and you can select the fb page to auto publish.

step 4

Note: If you find it difficult to submit the app for approval, you can opt for an alternate paid solution and the details are available in

New Interface during authorization

Step A:

1_fb

Step B:

2_fb

Step C:

3_fb

Step D:

4_fb

Step E:

5_fb

 

Was this article helpful to you? Yes 1,352 No 182