Connecting Kentico to social media

Kentico supports connecting to Facebook, Twitter, and LinkedIn. Such connections allow you to:

You connect to a social media by means of an app that you create on the social media, and then register the app within Kentico, as described on this page.

Creating Apps

Apps on social media serve as an interface for connecting other applications, such as Kentico, to the particular social media.

Creating a Facebook App

  1. Log in to your Facebook account at http://www.facebook.com/.
  2. Go to https://developers.facebook.com/apps and click Add a New App.
  3. Enter the Display Name of your new app and your Contact Email.
  4. Click Create App ID.

You have created a Facebook App. Now you need to further configure it to work properly.

On this page

Related pages
  1. Connecting Kentico to social media
  2. Adding social media accounts
  3. Posting to social media

Configuring the Facebook App

To configure the Facebook App you have just created:

  1. Switch to the Settings -> Basic tab.
  2. Specify the Privacy Policy URL.
  3. Upload an image as the App Icon.
  4. Click Add Platform and select Website.
  5. Enter your Site URL.
  6. Click Save Changes.

    Securing the Facebook integration

    To ensure that the connection between Kentico and your Facebook app is secure, we strongly recommend the following additional configuration:

    1. Open the Settings -> Advanced tab.
    2. Scroll down to the Security section and switch the Require App Secret option to Yes.
    3. Click Save Changes.

    Kentico automatically provides the required proof when communicating with your Facebook app.

  7. Click the plus icon (+) next to the Products menu.
  8. Set up the Facebook Login product.
  9. Open the Settings tab of the Facebook Login product.
  10. Enter the following values into the Valid OAuth redirect URIs field:
    • <your website's domain>/CMSModules/SocialMarketing/Pages/FacebookPageAccessTokenDialog.aspx

    • <your website's domain>/CMSModules/SocialMarketing/Pages/FacebookPageAccessTokenDialog.aspx?redirected=1

      The redirect URI values must be absolute, including the protocol, domain and virtual directory. For example:
      https://mydomain.com/CMSModules/SocialMarketing/Pages/FacebookPageAccessTokenDialog.aspx

      If your website's administration interface is available on multiple domains, add all of the possible options.

  11. Click Save Changes.

Next, you need to make your application publicly available (to allow usage by users outside of the Roles listed for you app):

  1. Switch to the App Review tab.
  2. Make sure your application is public.
  3. Click Start a Submission. 

  4. Click Add Items and select the following permissions for the submission.

    Permissions for Facebook post publishing

    • manage_pages and publish_pages – required to retrieve Page Access Tokens and post content from Kentico to Facebook pages.
    • read_insights – required to retrieve Facebook Insights statistics about published posts and the related pages.

    For each permission item, click Add Details, fill in the required fields, and click Save.

    Facebook requires adding of a screencast, which is a recording of your screen. To do so, follow the instructions provided by Facebook on how to create a screencast. A screencast is needed to show the Facebook reviewers how you are using the requested permissions.

  5. While still on the App Review tab, click Submit for Review.

Facebook registers your application and displays its Dashboard. You now have the required data that you can use to register the Facebook app into Kentico.

Creating a Twitter App

  1. Go to  https://apps.twitter.com/ and log in.
  2. Click Create New App.
  3. Fill in the required details and click Create your Twitter application.
    • Required fields are marked with a star symbol.
  4. Switch to Permissions, select Read and Write and click Update settings.
  5. Switch to API keys and under Your access token, click Create my access token.

You now have the required data that you can use to register the Twitter app into Kentico.

Creating a LinkedIn App

  1. Sign in to your LinkedIn account at https://www.linkedin.com or create a new account.
  2. Visit https://www.linkedin.com/secure/developer.
  3. Click Create Application on the My Applications page.
  4. Fill in at least the required fields (marked with red asterisks).
  5. Click Submit. LinkedIn redirects you to a page showing the details of your application.
  6. On the Authentication tab of the Application Settings, select the rw_company_admin option in the Default Application Permissions section.
    Viewing LinkedIn application details
  7. Enter the following value into the Authorized Redirect URLs field (under OAuth 2.0):
    <your website's domain>/CMSModules/SocialMarketing/Pages/LinkedInCompanyAccessTokenDialog.aspx

    The redirect URL value must be absolute, including the protocol, domain and virtual directory. For example:
    https://mydomain.com/CMSModules/SocialMarketing/Pages/LinkedInCompanyAccessTokenDialog.aspx

    If your website's administration interface is available on multiple domains, add all of the possible options.

  8. Click Add.
  9. Click Update.

You now have the required data that you can use to register the LinkedIn app into Kentico.

Registering Apps into Kentico

To be able to use social media features through apps, you must register the apps in the system. Depending on what social media features you want to use, you register your apps in different places:

  • For posting to social media from within Kentico, register the app in Kentico in the Facebook, Twitter, or LinkedIn application.

Registering a Facebook app in Kentico

  1. Open the Facebook application in Kentico and switch to the Apps tab.
  2. Click New app.
  3. Type a Display name you want to use for this app.
  4. Enter your Facebook app's credentials – Facebook App ID and Facebook App Secret.
  5. Click Save.

The system saves the app's credentials and the app appears in the list on the Apps page.

To finish the integration setup, create a page in Facebook -> Pages.

Registering a Twitter app in Kentico

  1. Open the Twitter application in Kentico and switch to the Apps tab.
  2. Click New app.
  3. Type a Display name you want to use for this app.
  4. Enter your Twitter app's credentials – API key, API secret.
    • You can get these on your API Keys page on Twitter:
      Twitter API Keys
  5. Click Save.

The system saves the app's credentials to the database and the app appears in the list on the Apps page.

To finish the integration setup, create a channel in Twitter -> Channels.

Registering a LinkedIn app in Kentico

  1. Open the LinkedIn application in Kentico and switch to the Apps tab.
  2. Click New app.
  3. Type a Display name you want to use for this app.
  4. Enter your LinkedIn app's API keys – Client ID and Client secret.
    • You can find your app's details page on LinkedIn.              
  5. Click Save.

The system saves the app's credentials to the database and the app appears in the list on the Apps page.

To finish the integration setup, create a company profile in LinkedIn -> Company profiles.

Required permissions for registering Apps

To register apps in Kentico, an administrator must grant you permissions for the Social media module. You need either Modify or Modify applications.


Was this page helpful?