Share to Facebook or Twitter

Does it have the plugin that let app can share content to twitter or facebook ?

Hi @yufei and welcome to the Corona forums.

This is actually a pretty complex question you’re asking. First, there are two types of things that apps/games can do with social media: 1. bring up the system dialog that lets you post to your own timeline. 2. use Facebook/Twitter API calls to get information about the user, their followers/friends, follow others, etc.

For the first option, you have to hook in to the OS to use the device’s dialogs to do the work. On iOS that’s the Activity plugin. On Android that’s the Social plugin. Unless you want to write native code and do the work on your own, the Corona plugins for these two features is the way to go. Both are free.

If you want to do other actions like #2, there is Corona’s free Facebook V2 plugin that you can use, or you can purchase Jason Schroeder’s Twitter plugin from the Corona Marketplace ( But in both cases, Facebook and Twitter have REST based API calls that you can use our network.request() API to do the same things those two plugins do, but you’re going to do a whole lot more work just to figure out logging in. The plugins are good convenience tools that make your life easy.

Rob

Rob

Thanks a lot!

We are developping a game with the corona, 

another question is many people use the corona for the game, I am wondering it is suitable for other type application such as Shopping, Social …

Yufei

Corona can be used for many different types of apps, however, we don’t have every possible combination of features you may want for every possibility.  For instance, some of our features like maps, video, complex text input are limited to the basics that you might want for simple cases. If you wanted to build an app like Shazam where you have to listen to audio and process it, or connect to streaming services, I’m not sure Corona should be your choice.

Rob