I have created a Visualforce global publisher action with the intent to add it to the Chatter actions menu for several objects in the organization. The action should be able to post a message directly to the feed of whatever Chatter feed it is added to. This is pretty easy, provided that I have the current record Id. However, I don't see how to generically get the current record Id from within the context of the Visualforce page.
I know that this is possible if I create a separate Visualforce page for every single object that I wish to use the action for and then create an object specific publisher action for each one. But what a lot of clutter for something so simple!
Is there any way to get the current record Id from within a global Visualforce publisher action? Hacks are welcome!