As the title said, shareKit is very good open source for you to do such of the things.
If can be integrated perfect with cocos2d-x on iOS platform.
But I still found a way to do they on Android.
Here are some references url.
shareKit : http://getsharekit.com/
The end-up like this : https://www.facebook.com/photo.php?fbid=10150634742238153&set=a.10150634742223153.401721.789513152&type=1&permPage=1
Hi\~Can you tell me how do you implement on cocos2d-x ?(ios && Android)Did you make a framework by C++?