Invite twitter followers

Hi,

I have a button in my game called “invite followers” which when clicked I want to have a message composed ready for a tweet saying something like “come and play xyz”  with a link to the app store.

I know ios has a build in twitter account but I want this to work on ios and android so just happy for the app to break out to the twitter app / web as long as it defaults to my text for the tweet…

Can anyone advise the best way to achieve this?

Thanks!

Corona SDK supports the built in Twitter login on iOS using the native.showPopup(“twitter”) API call.  This is available to all tiers.  Pro and Enterprise subscribers can use the social plugin:   native.showPopup(“social”) which works for both iOS and Android and supports additional social networks. 

You can also look at the Twitter sample app in SampleCode/Networking/Twitter and implement code from there into your app to do what you want, but you have to build the dialog screen, setup a Twitter App and so on.  It’s more work, but it’s available to all tiers.

Rob

Hi Rob,

Thanks for the quick response as always.  I think I’ll go the route of natice.showPopup(“social”) since that will work for both devices :slight_smile:

I’m looking at the documents here http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/showPopup.html but it says android support is in beta - is that still applicable?

Cheers

Nevermind… I think I managed to find the old docs!

These are the current ones?

http://docs.coronalabs.com/api/library/native/showPopup.html

Corona SDK supports the built in Twitter login on iOS using the native.showPopup(“twitter”) API call.  This is available to all tiers.  Pro and Enterprise subscribers can use the social plugin:   native.showPopup(“social”) which works for both iOS and Android and supports additional social networks. 

You can also look at the Twitter sample app in SampleCode/Networking/Twitter and implement code from there into your app to do what you want, but you have to build the dialog screen, setup a Twitter App and so on.  It’s more work, but it’s available to all tiers.

Rob

Hi Rob,

Thanks for the quick response as always.  I think I’ll go the route of natice.showPopup(“social”) since that will work for both devices :slight_smile:

I’m looking at the documents here http://docs.coronalabs.com/plugin/CoronaProvider_native_popup_social/showPopup.html but it says android support is in beta - is that still applicable?

Cheers

Nevermind… I think I managed to find the old docs!

These are the current ones?

http://docs.coronalabs.com/api/library/native/showPopup.html