@ionic-native/twitter-connect

Ionic Native - Native plugins for ionic apps

Stats

StarsIssuesVersionUpdatedCreatedSize
@ionic-native/twitter-connect
2,11324Minified + gzip package size for @ionic-native/twitter-connect in KB

Readme

Improve this doc

Twitter Connect

$ ionic cordova plugin add https://github.com/chroa/twitter-connect-plugin --variable FABRIC_KEY=<Fabric API Key> --variable TWITTER_KEY=<Twitter Consumer Key> --variable TWITTER_SECRET=<Twitter Consumer Secret>
$ npm install @ionic-native/twitter-connect

Usage Documentation

Plugin Repo: https://github.com/chroa/twitter-connect-plugin

Plugin to use Twitter Single Sign On Uses Twitter's Fabric SDK

import { TwitterConnect } from '@ionic-native/twitter-connect/ngx';

constructor(private twitter: TwitterConnect) { }

...

function onSuccess(response) {
  console.log(response);

  // Will console log something like:
  // {
  //   userName: 'myuser',
  //   userId: '12358102',
  //   secret: 'tokenSecret'
  //   token: 'accessTokenHere'
  // }
}

this.twitter.login().then(onSuccess, onError);

this.twitter.logout().then(onLogoutSuccess, onLogoutError);

Supported platforms

  • Android
    • iOS

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.