react-native-fbsdk-next自定义参数未在Meta Dashboard接收的问题
🐛 Bug报告
在Meta Dashboard中无法接收自定义参数,显示情况如下:
复现步骤
- 将react-native-fbsdk-next集成到项目中
- 在React Native的componentDidMount内触发logEvent()
- 触发自定义参数时,其他内容均正常记录,仅自定义参数未被记录
type AppEventParam = { AddType: string; Content: string; ContentID: string; ContentType: string; Currency: string; Description: string; Level: string; NumItems: string; MaxRatingValue: string; OrderId: string; PaymentInfoAvailable: string; RegistrationMethod: string; SearchString: string; Success: string; ValueNo: string; ValueYes: string; };
预期行为
我的三个自定义参数应被触发并显示在Meta Dashboard中
代码示例
测试代码如下:
import { AppEventsLogger } from 'react-native-fbsdk-next'; const params = { SECV: 123, 'Transaction ID': 123, 'Transaction Type': 'awsd' }; AppEventsLogger.logEvent(AppEventsLogger.AppEvents.InitiatedCheckout, params); console.log('INITIATED CHECKOUT TRIGGER!!!');
环境信息
react-native info输出:
info Fetching system and libraries information... System: OS: macOS 13.4.1 CPU: (8) x64 Apple M2 Memory: 22.32 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 14.13.0 - ~/.nvm/versions/node/v14.13.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v14.13.0/bin/yarn npm: 6.14.8 - ~/.nvm/versions/node/v14.13.0/bin/npm Watchman: 2023.07.24.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.12.1 - /Users/akhmadyuza/.rbenv/shims/pod SDKs: iOS SDK: Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4 Android SDK: API Levels: 29, 31, 32 Build Tools: 29.0.2, 30.0.2 Android NDK: Not Found IDEs: Android Studio: Not Found Xcode: 14.3.1/14E300c - /usr/bin/xcodebuild Languages: Java: 11.0.20 - /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/javac Python: Not Found npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: 0.63.3 => 0.63.3 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found
环境依赖版本:
"react-native-fbsdk-next": "^6.2.0" "react-native": "0.63.3"
内容的提问来源于stack exchange,提问作者Yuza
相关产品推荐
相关产品推荐

