Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.9k stars 2.01k forks source link

iPhone Facebook Plugin on Cordova1.6.1 Error: Cordova variable does not exist #139

Closed hsmith825 closed 12 years ago

hsmith825 commented 12 years ago

I installed FB plugin on Cordova-1.6.1. When I run the example index.html page I get an error: "Cordova Variable does not exist. Check that you have included Cordova.js correctly." Cordova is included with Do you have any idea what the problem is. I can provide other information that may be helpful. Is their a later vision of the plugin I should use. I used updates pulled down on 5/9/2012.

parag commented 12 years ago

I am also facing the same issue. Can you please tell what I am missing?

hsmith825 commented 12 years ago

I changes a line in the example as that looks for cordova to cordova-1.66.1.js which is the version I am using as follows:
if ((typeof Cordova == 'undefined') || (typeof cordova-1.6.1.js == 'undefined')) alert('Cordova variable does not exist. Check that you have included cordova.js correctly');

leopd commented 11 years ago

The example html file includes

    <script src="cordova-1.5.0.js"></script>

If you are using a newer version of cordova, you need to update this.

hsmith825 commented 11 years ago

I changed the example to cordova-1.6.1.js.

Thanks!