Skip to content
docsv0.1.0

FacebookUserInfo

Immutable DTO with user info returned by Facebook OAuth.

FacebookUserInfo::__construct()

public function __construct(string $id, string $name, ?string $email = null, ?string $picture = null):

Parameters

Parameters of __construct()
NameTypeDescription
$idstring
$namestring
$email?string
$picture?string

FacebookUserInfo::toArray()

public function toArray(): array

Convert to a plain array using Facebook Graph API field names.