using the ArrayAccessorTrait mentioned by @shadowhand instead of the getFields method from the FacebookUser
using the ArrayAccessorTrait mentioned by @shadowhand instead of the getFields method from the FacebookUser

thephpleague/oauth2-linkedin