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  manage_pages and  publish_pages  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)

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

app permissions continue

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

app permissions details

4 A : Details for publish_pages

app permissions details 2

  • For the question “Tell us how you’re using this permission or feature”, please use the answer “Lets people publish content or respond to posts and comments as a Page”.
  • For the question “Select applicable platforms and provide detailed step-by-step instructions on how a review team member can experience this permission or feature the same way people using your app would.”, please turn on the Web.
  • In the detailed step-by-step instructions, please use the detailed steps.
    A Sample detailed step-by-step instructions are given below:
  1. Go to https://DOMAIN.com/wp-login.php
  2. Login as an administrator with user name : <user name> and password: <password>
  3. Go to https://DOMAIN.com/wp-admin/admin.php?page=facebook-auto-publish-settings where user has to authorize the application from the plugin’s settings page. (This path is different for free and premium plugins)
  4. Enter the application name and save ,then click on the button ‘Authorize’. The “facebook login” is renamed as authorization here.
  5. It will take you to Facebook authorization procedure. 
  6. Upon successful authorization ,if you manage Facebook pages, you will be prompted to select the facebook pages to which you need updates to be published.
  7. After selecting Facebook pages ,you will be returned to the website.
  8. After the authorization is complete,make a post in website by following below steps,

     8.1 : Go to https://DOMAIN.com/post-new.php

     8.2 : Fill in some title and content ,and add an image to post ,then click ‘publish’ button on right side.

              The new post will be published in the website as well as on Facebook.

  1. Without the Facebook “publish_pages” permission, we would not be able to publish content to Pages owned by the admin.
  • 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 manage_pages

  • For the question “Tell us how you’re using this permission or feature”, please use the answer “Lets people publish content or respond to posts and comments as a Page”.
  • For the question “Select applicable platforms and provide detailed step-by-step instructions on how a review team member can experience this permission or feature the same way people using your app would.”, please turn on the Web.
  • In the detailed step-by-step instructions, please use the detailed steps.
    A Sample detailed step-by-step instructions are given below:

    1. Go to https://DOMAIN.com/wp-login.php
    2. Login as an administrator with user name : <user name> and password: <password>
    3. Go to https://DOMAIN.com/wp-admin/admin.php?page=facebook-auto-publish-settings where user has to authorize the application from the plugin’s settings page.
    4. Enter the application name and save ,then click on the button ‘Authorize’.  The “facebook login” is renamed as authorization here.
    5. It will take you to Facebook authorization procedure.
    6. Upon successful authorization ,if you manage Facebook pages, you will be prompted to select the facebook pages to which you need updates to be published.
    7. After selecting Facebook pages ,you will be returned to the website.
    8. After the authorization is complete,make a post in website by following below steps,

         8.1 : Go to https://DOMAIN.com/post-new.php

         8.2 : Fill in some title and content ,and add an image to post ,then click ‘publish’ button on right side.

                  The new post will be published in the website as well as on Facebook.

    1. Without the Facebook “manage_pages” permission, we would not be able to publish content to Pages owned by the admin.
  • 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 “Tell us how you’re using this permission or feature”, use the answer “To publish WordPress blog posts to Facebook groups managed by the app’s admin using plugin”
  • For the question “Select applicable platforms and provide detailed step-by-step instructions on how a review team member can experience this permission or feature the same way people using your app would.”, please turn on the Web.
  • 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>

3. 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.

4. Enter the application name and settings ,then click on the button ‘Save and Authenticate’. The “facebook login” is renamed as authorization here.

5. It will take you to Facebook authorization procedure.

6. 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.

7. After selecting Facebook pages/groups ,you will be returned to the website.

8. 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 ‘publish’ button on right side.

              The new post with video will be published in the website as well as on Facebook Group.

9. Without the Facebook “publish_to_groups” permission, we would not be able to publish content to groups owned by the admin.

  • 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.”
  • For the question “Select applicable platforms and provide detailed step-by-step instructions on how a review team member can experience this permission or feature the same way people using your app would.”, please turn on the Web.
  • 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>

3. 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.

4. Enter the application name and settings ,then click on the button ‘Save and Authenticate’.  The “facebook login” is renamed as authorization here.

5. It will take you to Facebook authorization procedure.

6. 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.

7. After selecting Facebook pages/groups ,you will be returned to the website.

8. 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 ‘publish’ button on right side.

              The new post with video will be published in the website as well as on Facebook Group.

9. Without the Facebook “Groups API” , we would not be able to get group details and publish content to groups owned by the admin

  • 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

complete app verification

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

App Verification Details

There is a test user “Open Graph Test User” by default.

Now you can review the app settings by adding App Icon, Privacy Policy URL, Category etc.

complete app settings

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

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. (1 week – 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 reviewed by facebook, they will ask for 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 get approved, you can see the permissions approved with a green bubble under the “App Review > My Permissions and Features”.

SMAP Lite 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 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 is 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,345 No 176