Ejecta icon indicating copy to clipboard operation
Ejecta copied to clipboard

Social API

Open Pasha187 opened this issue 10 years ago • 4 comments
trafficstars

How can we realize the publication points in social networks?

Pasha187 avatar Jun 21 '15 12:06 Pasha187

@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);

matrixreal avatar Jun 22 '15 01:06 matrixreal

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: [email protected]

Pasha187 avatar Jun 22 '15 05:06 Pasha187

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

matrixreal avatar Jun 22 '15 05:06 matrixreal

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

Pasha187 avatar Jun 23 '15 10:06 Pasha187