How to post a score to Facebook or Twitter?

Hey guys. I’m completely new to corona regarding its social features.

All I want to do is to be able to post a score to Facebook or Twitter without the user having to log in.

I figured if they were already logged into their social accounts on their phone, then it wouldn’t be necessary to log in on my app.

I have two simple social icons in my game and when you click on one, I would like the popup to show with their highscore and maybe a screenshot, and them click post. 

I’ve heard about the Corona social plugin, Facebook and Twitter SDK, among other things and I’m just not sure what to do. 

Is it even possible without a pro account? And how about Android? 

Thanks.

Anyone have any ideas? I’m confused on this too.

You have two choices:  Use the facebook.* API and make your own network.requests()'s to do this, but you have to follow Facebook’s rules, which requires a complex login and permission handshaking. You have to submit your app to Facebook and get your posting usage approved and so on.   If you are a Pro or Enterprise subscriber you can use the social plugin where it takes advantage of the internal OS facebook support and you won’t need Facebook approval to use it.

Rob

<fydimcorp>: If I were you, I would do this:

  • On iOS, I would simply use Corona’s sharing features to generate a popup and allow the user to choose Facebook or Twitter. It’s trivial, though as Rob points out you need to pay for Pro or Enterprise. I don’t believe you can post pre-filled text on FB (you can on Twitter), so simply take a screenshot, render some text (maybe offscreen if you need to) on top of it like “This is my high score from <insert name of game here>”, and share that modified screenshot with native.showPopup().

  • On Android, Twitter sharing should work but you’re out of luck with Facebook. That’s because Corona’s Facebook sharing is broken even with a Pro subscription. Here’s a thread from last November about fixing Android/Facebook sharing: http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Fortunately, Rob posted yesterday that Corona was working on a way to fix Android sharing. This is encouraging news, and I’m hoping it happens. Meanwhile, if you pay for Pro you can at least experiment with iOS (which does work).

Anyone have any ideas? I’m confused on this too.

You have two choices:  Use the facebook.* API and make your own network.requests()'s to do this, but you have to follow Facebook’s rules, which requires a complex login and permission handshaking. You have to submit your app to Facebook and get your posting usage approved and so on.   If you are a Pro or Enterprise subscriber you can use the social plugin where it takes advantage of the internal OS facebook support and you won’t need Facebook approval to use it.

Rob

<fydimcorp>: If I were you, I would do this:

  • On iOS, I would simply use Corona’s sharing features to generate a popup and allow the user to choose Facebook or Twitter. It’s trivial, though as Rob points out you need to pay for Pro or Enterprise. I don’t believe you can post pre-filled text on FB (you can on Twitter), so simply take a screenshot, render some text (maybe offscreen if you need to) on top of it like “This is my high score from <insert name of game here>”, and share that modified screenshot with native.showPopup().

  • On Android, Twitter sharing should work but you’re out of luck with Facebook. That’s because Corona’s Facebook sharing is broken even with a Pro subscription. Here’s a thread from last November about fixing Android/Facebook sharing: http://forums.coronalabs.com/topic/52755-can-corona-enable-limited-facebook-sharing-on-android-via-nativeshowpopup/

Fortunately, Rob posted yesterday that Corona was working on a way to fix Android sharing. This is encouraging news, and I’m hoping it happens. Meanwhile, if you pay for Pro you can at least experiment with iOS (which does work).