For Android apps, you would need to learn Java as this is the language that all Android apps are built in. You can technically do them using web technologies such as Javascript, HTML and CSS and then use various systems such as PhoneGap to build an app around them but these never perform as well as one built natively in Java. That said, I'm not sure how open Facebook's platform is in terms of allowing developers enough access to build a full messenger alternative.