It's not against the robots.txt rules. In Facebook's robots.txt file, there is a section for the Googlebot (as well as several other bots)
User-agent: Googlebot
Disallow: /ac.php
...
A bot is supposed to follow the its own User-agent section. If that is not found, it should follow the User-agent: * section. [1]