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
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $name | string | |
?string | ||
| $picture | ?string |
FacebookUserInfo::toArray()
public function toArray(): arrayConvert to a plain array using Facebook Graph API field names.