For my desktop game, I’ve decided to use the sharebutton of both facebook and twitter within webview component which is more easy to implement. So my question is, how can i pass a score variable, so when a user press the tweet button, this score will be included in the tweet? Do I have to use **module.exports ?, and then include the .js? How can I go about doing this? Thanks and God Bless…
Thanks for the info and help, yes, I’ve looked at SDKBOX, but I’m waiting for the plug-in to be out of beta for Cocos Creator… Also, right now, I’m trying to do it on the Web-Desktop, this is why I’m using a webview and using the share button sdk from facebook / twitter, which is more easy to implement, besides, I don’t think SDK supports web-desktop? Thanks for your help and courtesy… God Bless…
Thanks for info and help… But I noticed that this is C++, can I still use this within Cocos Creator, after build then open in xcode / android studio? Thanks again for the help…God Bless…
I’m developing using js, so I’m looking into implementing facebook and twitter sdk via IOS /Android through their editors ( xcode, android studio ), what I’m doing is building the game through Cocos Creator ( binary ), then opening the files in the editor, and from there, importing the facebook sdk as per below:
I wish there was an easy way about implementation of sdk, the other option is to wait for the sdkbox plug-in for Cocos Creator, which is still in beta… Thanks again and God Bless…
Yes, I’ve checked it out and tried it, but not go…I’ve downloaded the sdkbox gui which is still in BETA, and see how it goes…I’m just looking to implement facebook / twittershare buttons, they work okay via web component, which I’m using for the web desktop part of my game, but for mobile…It’s totally different…But let’s see…Thanks again and God Bless…
the facebook library used in the tutorial video was version 2.x.x, but me have version 4.x.x
so i was continue to go with version 4.x.x, but nothing happen when i run on my android device and click the button
i was following the tutorial from start to begin with carefully.