How could I replicate Facebook's allocation of a unique ID to a vast range of resources? See: https://developers.facebook.com/docs/reference/api/
With Facebook every photo, person, event, page has a unique ID.
If I wanted to make every page have a unique ID all I would need to do is have a page table with ID that auto increments. But this is not what I want to achieve, I want to achieve a system like Facebook has, where every object ("resource") has a unique ID.