Hi I'm trying to do a simple search of a variable on facebook, twitter and maybe mySpace. With facebook my code is working when I use www. but when I change to m. to get the mobile optimised site, it says 'the page you requested was not found'. Is there a way to open the search results for the mobile optimised site? The twitter search returns me to the 'see what's happening right now' page. My code is below, any help appreciated:
var ArtistVar="Blondie"; var facebookSearch='https://www.facebook.com/search.php?q='+ArtistVar; //this worked var facebookSearch='https://m.facebook.com/search.php?q='+ArtistVar; //this doesn't facebookBtn.addEventListener("click", function (e){ Titanium.Platform.openURL(facebookSearch); }); var twitterSearch="https://twitter.com/search?q="+ArtistVar+"src=typd"; var twitterSearch="https://twitter.com/search?q="+ArtistVar+"src=typd"; twitterBtn.addEventListener("click", function (e){ Titanium.Platform.openURL(twitterSearch); });