Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
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.
misterjunio Onsen UI last edited by
@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.
munsterlander 侍 last edited by
@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.
Leonardo Augusto 侍 last edited by