Line 155 needs to be changed from mm_github_connection_get_current_domain() to mm_facebook_connection_get_current_domain().
That fixes the fatal error and lets you enter the Facebook credentials, but even then I couldn’t login for some reason. (Using BuddyPress 2.4 and WordPress 4.3.1)
]]>