Skip to main content
Level 3
March 6, 2025
Solved

2 Auth Tokens for Meta CAPI in Event Forwarding

Hi Everyone, 

I am facing issue in Event forwarding while using 2 different prod token. Its showing error related to data element where i am returning token based on condition.

If i use only 1 token directly in Meta extension its working fine.

 

Can anyone suggest.

 

Thank

bjoern-koth
bjoern-kothAccepted solution
Adobe Employee
March 10, 2025

Yes, I am passing it as hard coded value.

Could you please share any reference, how to fetch Secret in data element.


Well basically you create the secrets first and then create a data element that references the secrets.

The "Secret" data element type is able to handle different tokens to cater for the different environment stages.

 

Then, you can just use the regular functionality to retrieve data elements

 

getDataElementValue('myToken')

 

 

Cheers from Switzerland!

7 replies

bjoern-koth
Adobe Employee
Adobe Employee
March 6, 2025

Hi @mrgupta 

what is the error message you are seeing?

Maybe the logic in your Data Element is not working as expected. I would start putting a debug message in there

Translate
Cheers from Switzerland!
mrguptaAuthor
Level 3
March 6, 2025

Thanks @bjoern__koth for reply. When I am returning single token with out any condition and using the same data element in Meta extension. Here is the error - 

when i use multiple pixel ID dynamically then following error is getting populated - 

 

 

 

 

Translate
bjoern-koth
Adobe Employee
Adobe Employee
March 7, 2025

And how does your custom code look?

Translate
Cheers from Switzerland!