finscn / Ejecta

A Fast, Open Source JavaScript, Canvas & Audio Implementation for iOS
42 stars 6 forks source link

Social API #16

Open Pasha187 opened 9 years ago

Pasha187 commented 9 years ago

How can we realize the publication points in social networks?

matrixreal commented 9 years ago

@Pasha187 with this fork on your main js

var social=new Ejecta.Social(); var message = "your message to share";

than call javascript social.openShare(message);

Pasha187 commented 9 years ago

Excuse me I not the programmer. I understand that I have to insert the specified code into the index.js file. I have two questions 1) Where exactly I have to insert the specified code into the index.js file? 2) How to make the button in game for social networks call?

I do games in Construct 2 and once didn't change the index.js file Help please, it is possible an example on mail: Pasha187@mail.ru

matrixreal commented 9 years ago

put the code in start of index.js call the javascript by browser plugin

Pasha187 commented 9 years ago

Many thanks, at me earned. Tell at you it didn't turn out to add the picture to the message? (facebook)