Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

open twitter and facebook search results

$
0
0

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

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>