Fixing using deprecated Facebook API method

Little fix where deprecated method is replaced by the new one.