# Integration with Facebook

To integrate comments from Facebook you should do the following: create new application and set up NorrCompetition settings.

### Creation of Facebook application

To create Facebook application open the following address: <https://developers.facebook.com/apps/>

You will see the list of already created applications. In the top right corner click on "Add a New App" button.

Then select WWW (website) as a platform.\
Quick start interface will open up. In the top right corner click on Skip and create App ID. You will see the popup window with the form:

* **Display Name** - the name of your app or website.
* **Namespace** - a unique identifier for your app (optional).
* **Is this a test version of another app?** - leave it as "No".
* **Category** - the category your website matches best.

Click on "Create App ID".

You will see settings of new application. Please note that this new application is in developer status and you should publish it. We will cover this step later.

Select item "Settings" in the left sidebar. You should complete the following fields:

<figure><img src="https://norrnext.com/images/docs/norrcompetition/comments/facebook1.png" alt="Facebook application settings"><figcaption><p>Facebook application settings</p></figcaption></figure>

* **App Domains.** - optional field. Here you should specify a website domain without protocol, for example "mysite.com". To enable the possibility of saving this field you should click on "Add Platform" button below, select website and fill in website’s URL.
* **Contact E-mail** - specify your e-mail.

  This field is required for application activation.

App ID value will be needed later for setup in NorrCompetition settings.

Now in the left sidebar click on "Status & Review".

Set "Yes" for Do you want to make this app and all its live features available to the general public? and save settings.

<figure><img src="https://norrnext.com/images/docs/norrcompetition/comments/facebook2.png" alt="Facebook application activation"><figcaption><p>Facebook application activation</p></figcaption></figure>

### Set up on NorrCompetition side

Open *Control Panel > Components > NorrCompetition > Options* and select "Comments" tab.

In "Facebook Application ID" parameter specify the ID of your application and save options.

That’s it. Facebook comments are now integrated in NorrCompetition.

The moderation of Facebook comments on the website will be possible through the application (all administrators of the app will be able to moderate comments). NorrCompetition will create special meta tag for that:

```
meta property="fb:app_id" content="{your Facebook Application ID}"
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.norrnext.com/norrcompetition/comments/integration-with-facebook.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
