Sonico: OpenSocial Virality Guide

13

description

A simple guide with examples and tips to improve your app virality.

Transcript of Sonico: OpenSocial Virality Guide

Page 1: Sonico: OpenSocial Virality Guide
Page 2: Sonico: OpenSocial Virality Guide

OpenSocialVirality Guide

Page 3: Sonico: OpenSocial Virality Guide

Viral ChannelsYour application should use all of them to achieve a successful promotion

• Invite friends.• Newsfeed and minifeed activities.• Notifications.• Direct e-mail messages.

Page 4: Sonico: OpenSocial Virality Guide

Invite friendsBasic viral channel. User can invite their friends by selecting them from a list.

• The list is showed to all users after they install any application.• The selected friends will receive an invitation e-mail.• You can call it from inside your app using

opensocial.requestShareApp(null, null, null);

Page 5: Sonico: OpenSocial Virality Guide

Invite friendsCode example

The OpenSocial API call that should be used to share an application is:

opensocial.requestShareApp(null, null, null)

Default call, without ids to pre-select (it’ll select them all), subtitle, callback

opensocial.requestShareApp (recipients, reason, opt_callback,opt_params)

There is an "Invite friends" button available in the canvas view. This button will always be available in all applications even if your application does not use opensocial.requestShareApp

More information and examples at the CodeRunner exercises - Sharing Applications section http://www.sonico.com/app_dev_docs.php

Page 6: Sonico: OpenSocial Virality Guide

ActivitiesMessage published in the newsfeed and user’s minifeed.

• Use them to communicate to all of the user’s friends some achievement or action.

• You should use images to improve visibility.• Don’t abuse or the user will probably remove your application.• User’s friend can add the application directly from the activitie.

Page 7: Sonico: OpenSocial Virality Guide

ActivitiesCode example

var params = { 'title' : 'just posted an activity.' };var activity = opensocial.newActivity(params);opensocial.requestCreateActivity(activity)

Post a simple activitie:

You can customize your app activitie by adding the body parameter and including the desired HTML code in it.

More information and examples at the Documentation and Alignments - Viral Channels section http://www.sonico.com/app_dev_docs.php

Page 8: Sonico: OpenSocial Virality Guide

NotificationsCreates a private notification and e-mail to one or many friends as a consencuence of a user action.

• The notification can only be seen by the receiver user.• It can only be created by a user’s action.• It can have one or many receivers.• The user’s friends receive it as a private notification inside Sonico and also

an e-mail.• You can define text but you should not add any link.

Page 9: Sonico: OpenSocial Virality Guide

NotificationsCode example

The title parameter must contain a URL to an image, which will be shown on the notifications page. Here you may also use a Sonico userid instead of “VIEWER”.

More information and examples at the Documentation and Alignments - Viral Channels section http://www.sonico.com/app_dev_docs.php

var urlToThumbnail = “thumbnail-URL";var params = { 'title': urlToThumbnail, 'type': opensocial.Message.Type.NOTIFICATION };var message = opensocial.newMessage("This is a notification", params);opensocial.requestSendMessage("VIEWER", message);

Post a simple activitie:

Page 10: Sonico: OpenSocial Virality Guide

E-Mail messagesSends an e-mail to the user or the user’s friends.

• It can only be created by a user’s action.• It can have one or many receivers.• You can define text but you should not add any link nor HTML code.

Page 11: Sonico: OpenSocial Virality Guide

E-Mail messagesCode example

Here you may also use a Sonico userid instead of “VIEWER”.

More information and examples at the Documentation and Alignments - Viral Channels section http://www.sonico.com/app_dev_docs.php

Send an e-mail to the viewer:

var params = { 'title': "this is the title", 'type': opensocial.Message.Type.EMAIL };var message = opensocial.newMessage("This is the email message", params);opensocial.requestSendMessage("VIEWER", message);

Page 12: Sonico: OpenSocial Virality Guide

A few more tipsBesides viral channels you can improve the virality of your app with some of these tips.

• Translate your app to all our supported languages (sp/en/pt).

• Create activities and notifications only for relevant actions.

• Give coins, an item or a small incentive when the user access your app every 24 hours.

• Update your app in a regular basis.

• Add images to ilustrate the activities and notifications.

• Ask the user before using any viral channel.

• Add gifts and benefits between users to encourage interaction.

• Try to add a feature that needs another user to be completed, and remember to send a notification to notify the user’s friend.

• Test in the sandbox before asking to upload a new version to production. Any error could make you lose users.

Page 13: Sonico: OpenSocial Virality Guide

Raul BajalesOpenSocial Technical [email protected]

Alejandro SenaProduct [email protected]

Thanks!Feel free to contact us if you have any question.