Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by FragOnly

I was wondering if it is possible to put a Facebook like button on an iOS app in ejecta?

It looks like its just the canvas so I was wondering how other people were getting around this?

Thanks!

1 decade ago by stillen

https://github.com/stillenklipse/EjectaCheckUrl

if( window.ejecta ){
    var OpenUrl = new Ejecta.OpenUrl('fb:yourpagetolike');
    if(OpenUrl.isUrlSafeToOpen() == "true"){
      OpenUrl.openPassedUrl();
    }
}else{
  console.log('facebook not installed')};
}

This plugin checks if the phone can open another application. The code above will check if the phone can open up "yourpagetolike" in Facebook. If it can, then phone will open up Facebook on your fan page.

1 decade ago by FragOnly

Thanks for the reply!

I was thinking of going this route, its good to see that there is a plugin that kind of helps the way.

Thanks!
Page 1 of 1
« first « previous next › last »