Profile (Cocos)
FRVRSDK.instance exposes the current player’s channel‑assigned identity — a stable id plus (where the channel still provides it) a display name and photo.
Read the fields
Section titled “Read the fields”All are async. id is effectively always available. name and photo are not guaranteed — see below.
Load the photo as base64
Section titled “Load the photo as base64”For rendering in your UI without dealing with CORS:
Facebook Instant: name & photo are no longer available
Section titled “Facebook Instant: name & photo are no longer available”Defensive rendering
Section titled “Defensive rendering”Player id stability
Section titled “Player id stability”getPlayerId() returns a stable, channel‑assigned id. Use it to key per‑player data that doesn’t need cross‑device sync (local storage keys, analytics user properties, etc.). For cross‑device identity, use the FRVR id attached to the cloud storage layer.