What's the best and simple way to post score from my game to Facebook and Twitter with store link in cocos2d-x?
1 Answer
Twitter has a developer portal, where you'll probably want to check out the REST API. Specifically the POST statuses/update endpoint. Because this API is HTTP-based, you'll need a way to make such requests from your game. This question on SO addresses that subject, with suggestions such as curlpp.
Facebook has a similar set of APIs available, described on their developer portal. Unfortunately most of their actual documentation is behind a Facebook login wall, so I won't link it directly. But if you search for "facebook api post to wall" you get several results, including direct links to the graph API documentation for posting and this SO question.
Facebook has JavaScript, Objective-C and Java-based APIs.