how can I get customer name and display photo from the Twilio Whatsapp api
Twilio developer evangelist here.
From what I can tell from the WhatsApp API documentation, WhatsApp doesn't send the user's display photo as part of a message and you can't look it up for a contact.
They do send the profile name, however that is not exposed in the Twilio API for WhatsApp. The request parameters that are set for WhatsApp messages are the same for SMS messages and you can see them all in the documentation here.
Edit
Twilio does now support sending the profile name, and other WhatsApp specific properties, as part of the incoming webhook.