Q:

How to add skype & photo entries using moderncv

I'm trying to generate a CV using this code. But, I wasn't able to find how to add a skype entry to this code and another for photo one.
\documentclass[11pt,a4paper,francais]{moderncv}

\usepackage[utf8]{inputenc}
\usepackage{babel}
\firstname{XX}
\familyname{XX}
\title{XX}              
\address{XX}{XX}    
\email{XX@XX.X}                      
\homepage{}
\mobile{XX} 
\extrainfo{XX}

\makeatletter
\newcommand\personaltitle{
  \def\phonesdetails{}
  \collectionloop{phones}{
    \protected@edef\phonesdetails{\phonesdetails\protect\makenewline\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
 \par\noindent\begin{tabular}{@{}l@{}}
     {\LARGE\textbf{\@lastname\ \@firstname}} \\
     \@addressstreet \\
     \@addresscity  \\
     \@extrainfo \\
     \mobilephonesymbol:\ \collection@phones@item  \\
     \emailsymbol:\ \emaillink{\@email} \\
     \githubsocialsymbol:\ \httplink{\@homepage} \\
 \end{tabular}\par%\noindent\rule{\linewidth}{1pt}\par%
}
\begin{document}

\personaltitle

\section{Introduction}

\end{document}

How to deal with? Any brilliant idea?

A:

Make sure you have the latest version of the FontAwesome font because Skype symbol is new. Then, in the preamble add the two lines
\usepackage{fontawesome}
\providecommand\faSkype{{\FA\symbol{"F17E}}}

and compile. The second line is required because \faSkype doesn't simply work out of the box.
With \faSkype\ John.Aims, for example, you can expect some thing like this:

Without a MWE, I cannot explain any further.
Edit: With a MWE added.
I updated my solution for your MWE, but I recommend starting your document from scratch without that ugly block \makeatletter ... \makeatother from another question here and add only the commands you need. For adding the photo, add the line \photo[64pt][0.4pt]{picture} to your personal information. Replace the picture with your actual photo. If you don't like the classic style you can use casual or oldstyle.
\documentclass[11pt,a4paper,francais]{moderncv}
\moderncvstyle{classic} 
\usepackage{babel,fontawesome}
\providecommand\faSkype{{\FA\symbol{"F17E}}}
\usepackage[utf8]{inputenc}
\firstname{XX}
\familyname{XX}
\title{XX}              
\address{XX}{XX}    
\email{XX@XX.X}                      
\homepage{}
\mobile{XX} 
\extrainfo{\faSkype\ John.Aims}
\photo[64pt][0.4pt]{picture}

\begin{document}
\makecvtitle

\section{Introduction}

\end{document}

