The parameter builder library is a list of SDKs in both client-side (browser JavaScript) and server-side (PHP, Java, Python, NodeJS, Ruby). You can implement the parameter builder library to improve the quality of your Conversions API integration. The library can help you create, manage, and send certain customer information parameters, which may lead to performance improvements through increased event match quality (EMQ) scores. The library streamlines event parameter management by:
fbc (Meta click ID), fbp (Meta browser ID), and IP addresses.Client-side: The library and events live in the front-end on the browser side. The libraries are implemented in JavaScript. Developers may integrate it in their web page directly.
Server-side: The libraries and events live in the back-end on the server side. Depending on the language the backend uses, Meta provides libraries in different languages (PHP, Java, Python, NodeJS and Ruby).
The supported parameters are as follows:
| Supported Parameter | Supported SDK | Description |
|---|---|---|
fbc (Click ID)string | Client-side JavaScript PHP NodeJS Java Python Ruby | The Meta click ID value is stored in the The format is: Example: |
fbp (Browser ID)string | Client-side JavaScript PHP NodeJS Java Python Ruby | The Meta broswer ID value is stored in the The format is: Example: |
client_ip_address (Client IP address)string | Client-side JavaScript PHP NodeJS Java (coming soon) Python (coming soon) Ruby (coming soon) | The IP address of the browser corresponding to the event must be a valid IPV4 or IPV6 address. IPV6 is preferable over IPV4 for IPV6-enabled users. The Example: IPV4: 168.212.226.204. IPV6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334. |
Normalized parameters string
| Client-side JavaScript PHP NodeJS Java (coming soon) Python (coming soon) Ruby (coming soon) | The IP address of the browser corresponding to the event must be a valid IPV4 or IPV6 address. IPV6 is preferable over IPV4 for IPV6-enabled users. The Example: IPV4: 168.212.226.204. IPV6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334. |
For all parameters processed by the parameter builder, Meta will add an appendix field at the end of each parameter to help evaluate the performance of the library. The appendix field has 8 characters containing (1) the SDK version, (2) incrementalability, (3) the SDK language.
Check Github for implementation details. (PHP example)
Note: If you are seeing the appendix as 2 characters, it is a legacy appendix that only contains the SDK language. It is highly recommended that you upgrade to the latest version.
_fbp and _fbc cookies as early as possible in the customer journey in your webpage. Ideally retrieve _fbp and _fbc cookies when loading your landing page. It’s not recommended to retrieve them only from down-funnel events or when certain events are triggered._fbc or _fbp cookie. _fbc is case sensitive; do not normalize or format the _fbc to lowercase.getIpFn: When you implement the getIpFn functionality, we recommend retrieving the IPv6 address first, then fallback to the IPv4 address if the IPv6 address retrieval capability is not available from the user's client side.client_ip_address and save to a cookie first.