Authorization to monatize apps with adds

Am I allowed to monatize an app, using advertisment, that uses, for example, Facebook's or Twitter's API? Im thinking about building an app that uses some of the features of those API's like reading posts and retrieving pictures.