# X Configuration

<mark style="color:blue;">**Step #1**</mark>

Visit the [**X Developer Portal**](https://developer.x.com/) and Sign in.&#x20;

After that click on **Developer Portal**.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FspuNsvRDCKAyyTOPryNR%2Fimage.png?alt=media&#x26;token=e0986dbc-98a5-4a94-8a42-8a25a0e5cdb7" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #2**</mark>

Click on **Create Project** and enter the **Project Name**, **Use Case**, and **Project Description**.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FHp2cuA6Y1Na8rcDm7gtU%2Fimage.png?alt=media&#x26;token=23af7e23-d243-45e2-84d3-aaba1ae90a0d" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #3**</mark>

Enter an **App Name** to generate the **API Key** and **API Secret Key**.&#x20;

Copy and store them securely for future use.&#x20;

After that, click **Go to Dashboard** and navigate to Settings.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Funj4oGAhmiSUu0nzddQI%2Fimage.png?alt=media&#x26;token=a05faea0-2aec-44c4-9930-00be3d9fef37" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #4**</mark>

Click the Edit button to update your App Logo and other details.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FIdlWokruwqIE2hc7wcNF%2Fimage.png?alt=media&#x26;token=04852d12-86f4-4ab6-8566-d69ccec06b44" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #5**</mark>

Click Setup and adjust the following settings:

* Set **App Permissions** to **Read and Write and Direct Messages**.
* Enable **Request Email from Users**.
* Choose the App Type: **Web App, Automated App, or Bot**.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FYOnEItva0AndMb7vNmOV%2Fimage.png?alt=media&#x26;token=75b1c99e-788a-400d-bb9e-fa54200618bf" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #6**</mark>

Add the Callback URL, e.g., <https://googleonetap.magecomp.net/api/handleCallback?shop=your-store-url.myshopify.com>

Enter additional details: **Website URL**, **Organization URL**, **Terms of Service**, and **Privacy Policy**.

Select the **Save** button.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2Ffrm1Bdt3Fh3JFLJUpXo5%2Fimage.png?alt=media&#x26;token=7bebfa48-4120-41d3-b625-27823eda8f88" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Step #7**</mark>

Copy your **API Key, Secret Key,** and **Callback URL**.&#x20;

After copying the keys, paste them into the HOOK App for integration.

<mark style="color:blue;">**Step #8**</mark>

After following all these steps, go to **Online Store** ➤ **Preferences** ➤ **Spam Protection** and **Disable** the by default selected options:

* Enable hCaptcha on contact and comment forms
* Enable hCaptcha on login, create account and password recovery pages

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FdmWJw4WwuJbkXDT46OKH%2Fimage.png?alt=media&#x26;token=c6758060-9f34-4f29-8006-5c59677fe910" alt=""><figcaption></figcaption></figure>

It is necessary to keep these two options **Disabled** as they cause errors sometimes, which may cause a bad user experience.

<mark style="color:blue;">**Step #9**</mark>

Ensure the **Customer Accounts Type** is set to **Legacy**. If not, update the configuration.

<figure><img src="https://922942541-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIGRcMuVZCEGNibOl1OmW%2Fuploads%2FVWMUq13y3B8IyWaJS7Hy%2Fimage.png?alt=media&#x26;token=82c2ee04-6673-4fed-a096-2dd61693430d" alt=""><figcaption></figcaption></figure>
