> For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt.

# Facebook FAQ

How to obtain PixelCode/Test Event Code/Access Token from Facebook?

## Step 1 - Log in to Facebook Ads

Facebook backend login URL:  [https://adsmanager.facebook.com](https://adsmanager.facebook.com) , please log in with your business promotion account;

## Step 2 - Create and obtain PixelCode

Enter the ad management tool, click \[Events manager];

![](/images/HEWjbBD1HopUrsxXO4gcb1R3nIc.webp)

Select \[+connect Data Source] in the left column;

![](/images/PachbXi7FodtU2xU1jfceVBPnGh.webp)

Select \[Website] and click \[Connect].

![](/images/GcrNbKcl4ogEhyxUAhmcswFTnob.webp)

Custom pixel names，click \[Create]

![](/images/MT2zbol6won0W8xlc4nc14m1npg.webp)

Select \[Connect manually]，then select \[Meta Pixel only] ；

![](/images/CR9AbJBRioqEPqxtzjbc9QXunSf.webp)

Scroll down to the bottom to see the pixel ID， finally, select \[Next];

![](/images/YZ1MbU28bobRLsxtpcKcsh5Yngb.webp)

If you do not need to measure the effectiveness of your advertising campaigns, you can select the Finish button.

![](/images/GbTObXBDpocl7SxAYx4cfrU9nYe.webp)

If you need to measure the effectiveness of your advertising campaigns, you can enter the corresponding interface for further operation. For specific operations, please consult your technicians.

![](/images/JqwUbqJRaoc5N3xWdxcczOfxnOg.webp)

## Step 3 - Get the Test Event Code

Go back to the data sources interface, you can find the  pixel and select Test events.Scroll down and find \[Confirm your server's events are set up correctly]

![](/images/K2QbbNtfeov8HMxfEsecVwJOnFb.webp)

Copy and paste the Test Event Code in the ROIBest backend and fill it in the ROIBest backend;

![](/images/Xn6wbqCISo2NGCxvRSHcJaIcnJd.webp)

## Step 4 - Get Access Token;

Stay on the data source page, select \[Settings], and scroll down to find \[Generate Access Token];

![](/images/XQEjb10kyo2VbGx7ndac3VYSn1g.webp)

Expand and copy \[Generate Access Token] and fill it in the ROIBest backend

![](/images/QXRlb64Smok1RYxlEb9ctkx8ngg.webp)

## Step 5 -Complete the ROIBest backend

Follow the above steps to complete the three parts of the ROIBest backend. Click Finish after filling in the contents.

![](/images/F1kYbKiJfoPhNYxcmDAchUg3nXe.webp)
