Posting on Facebook and twitter

hi,

I want to have a “recommend” option in my app where players can recommend the app to their friends by using Facebook, twitter, email or SMS. I would like to know how can I do this for Facebook and twitter. The post would consist of a small text message with the app icon.

Thank you :slight_smile:

If you are on iOS 6.0 or later you can use our native.showPopup, if not you will need to look at the twitter sample app and see what it’s doing.

As for facebook, you will use our facebook.* API library and after you have logged into facebook, you will use the facebook.showDialog() API Call to show the appropriate appinvite dialog to your player.

Facebook is pretty much straight forward.
For Twitter, I’d suggest this article. Code is not too pretty, but gets the job done! 

If you are on iOS 6.0 or later you can use our native.showPopup, if not you will need to look at the twitter sample app and see what it’s doing.

As for facebook, you will use our facebook.* API library and after you have logged into facebook, you will use the facebook.showDialog() API Call to show the appropriate appinvite dialog to your player.

Facebook is pretty much straight forward.
For Twitter, I’d suggest this article. Code is not too pretty, but gets the job done!