The topic is in-app purchases, Facebook, and cocoonJS.
Facebook has a neat in app purchase system. Not available in C2 (yet).
CocoonJS has a neat webview thing. Not in C2 (yet).
I was hoping to setup a web page that can host the facebook in-app purchases, and then use the webview support by CocoonJS to show the page and therefore allow in app purchases.
Cocoon allows communication both ways (to and from the webview). And there are samples. Based on my research this is what I have found:
Facebook documentation: https://developers.facebook.com/docs/payments/build/
CocoonJS documentation: http://wiki.ludei.com/cocoonjs:extensions:basic:webview
CocoonJS sapmle code: http://cocoonjsservice.ludei.com/cocoonjslaunchersvr/demo-list/
So it is a matter of stitching them together.
Facebook also only allows in app purchases using their payment methods, so to get the game on facebook and charge for it, using their payment api is the only way.
I have only been thinking about this today so far, so any comments and suggestions are welcome.