SlideShare a Scribd company logo
 
OpenSocial Virality Guide
Viral Channels Your application should use all of them to achieve a successful promotion ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],Invite friends Basic viral channel. User can invite their friends by selecting them from a list.
Invite friends Code 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
[object Object],[object Object],[object Object],[object Object],Activities Message published in the newsfeed and user’s minifeed.
Activities Code 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
[object Object],[object Object],[object Object],[object Object],[object Object],Notifications Creates a private notification and e-mail to one or many friends as a consencuence of a user action.
Notifications Code 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:
[object Object],[object Object],[object Object],E-Mail messages Sends an e-mail to the user or the user’s friends.
E-Mail messages Code 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);
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],A few more tips Besides viral channels you can improve the virality of your app with some of these tips.
Raul Bajales OpenSocial Technical Leader [email_address] Alejandro Sena Product Architect [email_address] Thanks! Feel free to contact us if you have any question.

More Related Content

Viewers also liked

eSignature Implementation Webinar Slides
eSignature Implementation Webinar SlideseSignature Implementation Webinar Slides
eSignature Implementation Webinar Slides
Julia Ferraioli
 
Link Building Workshop - SEO After Penguin & Panda
Link Building Workshop - SEO After Penguin & PandaLink Building Workshop - SEO After Penguin & Panda
Link Building Workshop - SEO After Penguin & Panda
Wiideman Consulting Group
 
Et solar company presentation february 2014
Et solar company presentation february 2014Et solar company presentation february 2014
Et solar company presentation february 2014
Jonathan Melendez
 
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer JourneyFashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
Pieter Jongerius
 
Saudi Arabia National factories directory
Saudi Arabia National factories directorySaudi Arabia National factories directory
Saudi Arabia National factories directory
Jerin Thanislas
 
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compare
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compareBluetooth bluetooth-low-energy-ant-nfc-wifi-compare
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compareDroidcon Berlin
 
Sap basis made easy
Sap basis made easySap basis made easy
Sap basis made easy
Durga Balaji M
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDB
Nicola Iarocci
 

Viewers also liked (9)

eSignature Implementation Webinar Slides
eSignature Implementation Webinar SlideseSignature Implementation Webinar Slides
eSignature Implementation Webinar Slides
 
English essay & composition for juniors
English  essay & composition for juniors English  essay & composition for juniors
English essay & composition for juniors
 
Link Building Workshop - SEO After Penguin & Panda
Link Building Workshop - SEO After Penguin & PandaLink Building Workshop - SEO After Penguin & Panda
Link Building Workshop - SEO After Penguin & Panda
 
Et solar company presentation february 2014
Et solar company presentation february 2014Et solar company presentation february 2014
Et solar company presentation february 2014
 
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer JourneyFashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
Fashion Touchpoint Strategy - The Fashion Cycle Meets Customer Journey
 
Saudi Arabia National factories directory
Saudi Arabia National factories directorySaudi Arabia National factories directory
Saudi Arabia National factories directory
 
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compare
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compareBluetooth bluetooth-low-energy-ant-nfc-wifi-compare
Bluetooth bluetooth-low-energy-ant-nfc-wifi-compare
 
Sap basis made easy
Sap basis made easySap basis made easy
Sap basis made easy
 
Developing RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDBDeveloping RESTful Web APIs with Python, Flask and MongoDB
Developing RESTful Web APIs with Python, Flask and MongoDB
 

Similar to Sonico: OpenSocial Virality Guide

Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
Ace Web Academy -Career Development Center
 
Nitin Rajput - Facebook Developer Garage Bangalore
Nitin Rajput - Facebook Developer Garage BangaloreNitin Rajput - Facebook Developer Garage Bangalore
Nitin Rajput - Facebook Developer Garage Bangalore
Abhishek Goyal
 
Shiny Agency's Facebook Development Guidelines
Shiny Agency's Facebook Development GuidelinesShiny Agency's Facebook Development Guidelines
Shiny Agency's Facebook Development Guidelines
Roy Pereira
 
Make your PWA feel more like an app
Make your PWA feel more like an appMake your PWA feel more like an app
Make your PWA feel more like an app
Önder Ceylan
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
arfa442827
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
Ace Web Academy -Career Development Center
 
Mobile App Marketing Guide
Mobile App Marketing GuideMobile App Marketing Guide
Mobile App Marketing Guide
SoftProdigy - We know software!
 
Windows phone 8 session 13
Windows phone 8 session 13Windows phone 8 session 13
Windows phone 8 session 13hitesh chothani
 
Mike king - Digital body language 2.0
Mike king - Digital body language 2.0Mike king - Digital body language 2.0
Mike king - Digital body language 2.0
Neo Consulting
 
Progressive web apps
Progressive web appsProgressive web apps
Progressive web apps
Suraj Kumar
 
Design for charms & contracts
Design for charms & contractsDesign for charms & contracts
Design for charms & contracts
Maria Nasioti
 
The Future of Web Apps
The Future of Web AppsThe Future of Web Apps
The Future of Web Apps
iCiDIGITAL
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coinnithiya
 
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
VerySoftware
 
Mobile App Basics for Beginners
Mobile App Basics for BeginnersMobile App Basics for Beginners
Mobile App Basics for Beginners
SignUp4
 
12 wp7 marketing windows phone applications
12 wp7   marketing windows phone applications12 wp7   marketing windows phone applications
12 wp7 marketing windows phone applicationsTao Wang
 
Hi5 Hackathon Presentation
Hi5 Hackathon PresentationHi5 Hackathon Presentation
Hi5 Hackathon PresentationLou Moore
 

Similar to Sonico: OpenSocial Virality Guide (20)

Android app development guide for freshers by ace web academy
Android app development guide for freshers  by ace web academyAndroid app development guide for freshers  by ace web academy
Android app development guide for freshers by ace web academy
 
Nitin Rajput - Facebook Developer Garage Bangalore
Nitin Rajput - Facebook Developer Garage BangaloreNitin Rajput - Facebook Developer Garage Bangalore
Nitin Rajput - Facebook Developer Garage Bangalore
 
Shiny Agency's Facebook Development Guidelines
Shiny Agency's Facebook Development GuidelinesShiny Agency's Facebook Development Guidelines
Shiny Agency's Facebook Development Guidelines
 
Make your PWA feel more like an app
Make your PWA feel more like an appMake your PWA feel more like an app
Make your PWA feel more like an app
 
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdfPERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
PERTEMUAN 3_INTRO TO ANDROID APP DEV.pdf
 
How to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step GuideHow to build your own Android App -Step by Step Guide
How to build your own Android App -Step by Step Guide
 
Mobile App Marketing Guide
Mobile App Marketing GuideMobile App Marketing Guide
Mobile App Marketing Guide
 
Windows phone 8 session 13
Windows phone 8 session 13Windows phone 8 session 13
Windows phone 8 session 13
 
Mike king - Digital body language 2.0
Mike king - Digital body language 2.0Mike king - Digital body language 2.0
Mike king - Digital body language 2.0
 
Progressive web apps
Progressive web appsProgressive web apps
Progressive web apps
 
Design for charms & contracts
Design for charms & contractsDesign for charms & contracts
Design for charms & contracts
 
The Future of Web Apps
The Future of Web AppsThe Future of Web Apps
The Future of Web Apps
 
Facebook Coin
Facebook CoinFacebook Coin
Facebook Coin
 
16.mobileapps demo
16.mobileapps demo16.mobileapps demo
16.mobileapps demo
 
16.mobileapps demo
16.mobileapps demo16.mobileapps demo
16.mobileapps demo
 
16.mobileapps demo
16.mobileapps demo16.mobileapps demo
16.mobileapps demo
 
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
Blending Delicious User Experiences For Windows Phone 7 (by VerySoftware)
 
Mobile App Basics for Beginners
Mobile App Basics for BeginnersMobile App Basics for Beginners
Mobile App Basics for Beginners
 
12 wp7 marketing windows phone applications
12 wp7   marketing windows phone applications12 wp7   marketing windows phone applications
12 wp7 marketing windows phone applications
 
Hi5 Hackathon Presentation
Hi5 Hackathon PresentationHi5 Hackathon Presentation
Hi5 Hackathon Presentation
 

Recently uploaded

Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
DianaGray10
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 

Recently uploaded (20)

Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 

Sonico: OpenSocial Virality Guide

  • 1.  
  • 3.
  • 4.
  • 5. Invite friends Code 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
  • 6.
  • 7. Activities Code 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
  • 8.
  • 9. Notifications Code 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:
  • 10.
  • 11. E-Mail messages Code 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);
  • 12.
  • 13. Raul Bajales OpenSocial Technical Leader [email_address] Alejandro Sena Product Architect [email_address] Thanks! Feel free to contact us if you have any question.