How can I implement buttons for social networks?
I tried to install inappbrowser plugin but I have an error because it says my project isn’t a Cordova project.
@fjmarmol How about trying Monaca? With it it’s simpler to add Cordova plugins to your project, either with the cloud or the local tools. Make sure to visit their side of the Community if you run into trouble.
Thank you, I thought Monaca was another framework. It’s the best way to program Onsen :)
I’m trying to open the official app of some social networks when I click a button. In other words, if I click a button, it would open a Twitter profile in the Twitter app.
@fjmarmol You should be able to use something like this:
window.location = 'instagram://media?id=' + id; window.location = 'fb://post/' + id;
This plugin lets you check if the app is installed: https://github.com/ohh2ahh/AppAvailability because if it is not, you will need to do something different, like redirect to the actual website.