How to make 2 different code run acording to different cron schedule?
Adding a GET parameter should work. In your crontab edit the url and add something like &amp;type=facebook.

In the hook_cron implementation you should be able to catch the type via $_GET['type']