Developing with the Facebook’s mobile site was not a particularly fun experience. Firstly, the code appears to have been somehow generated and as consequence, the HTML source is a mess. The CSS class names are random and therefore I made the assumption that they would change when the site was revised. Because of this, I could not use any class names for DOM manipulation. Secondly, the internal page navigation sometimes uses preloaded data from the API to populate the new page (even more painfully, sometimes doesn’t). As I wanted to make navigation smooth as possible, I chose to programmically press the navigation buttons (when they exist).
Aside from the severe impact on my mental health, this method worked quite well and is currently implemented in the app.