Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Completed iOS section in the README

  • Loading branch information...
commit 7796b9f638e0e1d62c0c918a75a22f7be87a5374 1 parent b2a75ea
@shazron shazron authored
Showing with 16 additions and 22 deletions.
  1. +16 −22 README.md
View
38 README.md
@@ -33,31 +33,25 @@ ant debug install
</pre>
-iOS (OS X)
+iOS (Mac OS X)
+--------------
+
+1. Get the latest iOS source from http://github.com/phonegap/phonegap-iphone and read the README there about getting started with iOS.
+2. Create a new Xcode project from the PhoneGap template that you created and installed (you did that if you read the README on github I hope).
+3. From the 'PhoneGap Facebook Connect Plugin' folder copy the contents of the native/ios folder into your app in Xcode (usually in the Plugins folder group).
+4. Find the PhoneGap.plist file in the project navigator, expand the "Plugins" sub-tree, and add a new entry. For the key, add "com.facebook.phonegap.Connect", and its value will be "FacebookConnectPlugin"
+5. From the' PhoneGap Facebook Connect Plugin' folder copy contents of the app/www folder into the www directory in Xcode overwriting the index.html and icon.png files but keeping the phonegap.*.js file
+6. for Xcode 4, you will need to build it once, and heed the warning - this is an Xcode 4 template limitation. The warning instructions will tell you to drag copy the www folder into the project in Xcode.
+7. Run the application in Xcode.
+8. Add the URL Scheme for your app below
+
+iOS URL Scheme
-----------
-Get the latest iOS source from http://github.com/phonegap/phonegap-iphone and read the readme there about getting started with iOS.
+Make sure you add the scheme to your [PROJECTNAME]-Info.plist (located as one of the files in your Xcode project), substitute [APP_ID] and [SCHEME_ID] below to the appropriate values. This is to handle the re-direct from Mobile Safari or the Facebook app, after permission authorization.
-Create a new xcode project from the PhoneGap template that you created and installed (you did that if you read the readme on github I hope).
-
-From the PhoneGap Facebook Connect Plugin folder copy the contents of the native/ios folder into you app in xcode.
-
-Open the plugins.plist file in xcode and add an entry for com.facebook.phonegap.Connect ... SHAZ CAN YOU PLS ELABORATE?
-
-From the PhoneGap Facebook Connect Plugin folder copy the app/www folder into the www directory in xcode overwriting the index.html and icon.png files but keeping the phonegap...js file.
-
-From the PhoneGap Facebook Connect Plugin folder copy the www folder into the www directory in xcode.
-
-Run the application in xcode.
-
-
-
-IGNORE THIS STUFF BELOW FOR NOW...
-
-iOS Testing
------------
-
-Make sure you add the scheme to your [PROJECTNAME]-Info.plist, substitute [APP_ID] and [SCHEME_ID] below to the appropriate values. This is to handle the re-direct from Mobile Safari, after permission authorization.
+* [SCHEME_ID] is usually a unique identifier for the scheme, in reverse domain name notation (i.e com.facebook.phonegap.myscheme)
+* [APP_ID] is the Facebook app id given by Facebook
<pre>
&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
Please sign in to comment.
Something went wrong with that request. Please try again.