Actually, can you add the following line of code around line 352, so it now looks like the following:
$twitter_card_enabled = JFBCFactory::config()->get('social_graph_twitter_cards_enabled');
$card_type = JFBCFactory::config()->get('social_graph_twitter_cards_types');