From c11d8298e37a0ef97641f8ffda81812c0a2a2b18 Mon Sep 17 00:00:00 2001 From: Joana Date: Sat, 3 Mar 2018 13:39:33 +0000 Subject: [PATCH] Revert "Updated REAME.md" This reverts commit 6c74d2161a174e36d501eab2af6624d6977d8c8c. --- README.md | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39ff948..d9d7c18 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # twitter-connect-plugin -### **Using Twitter's Fabric SDK** Cordova/PhoneGap plugin to use Twitter Single Sign On +### **NOTE: This plugin has been extended from https://github.com/ManifestWebDesign/twitter-connect-plugin. Not only performs authentication on your mobile device but it also allows you to call the tweet composer and has also the ability to show a twitter search timeline. This last feature is not yet complete.** + +Using Twitter's Fabric SDK, you can enable SSO with your Android and iOS apps. It's a fairly involved process, so I'll try to lay out every step necessary. ### Install @@ -13,8 +15,7 @@ The only thing we really need is the API key. Getting the API key is [fairly tri 3. Find your API Key pre filled in the code. ##### Create a Twitter app - -Create a Twitter application in https://apps.twitter.com and get the consumer key and secret under the "Keys and Access Tokens" tab. +Create a Twitter application and get the consumer key and consumer secret. ##### Add plugin to your Cordova app @@ -22,14 +23,33 @@ Make sure you put in your valid API keys in their respective place. `cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY= --variable TWITTER_KEY= --variable TWITTER_SECRET=` +For iOS, the deployment target needs to be at least 7.0. You can set this in the config.xml file like so: +```` + +```` + ##### Dependencies Dependencies have been added in the Android version for the core SDK (````com.twitter.sdk.android.core````) and for retrofit ````retrofit.*```` to simplify the REST URLs (See [Square Retrofit](http://square.github.io/retrofit/)) ##### Finished! - You should now be able to: `cordova run android` or `cordova run ios` +### Phonegap Build +Add the following to your config: + +``` + + + + + +``` + +You'll need to specify iOS7 for TwitterKit +``` + +``` ### Usage