Jump to content

<p>Setting up Twitter</p>


Nabeel
  • As of phpVMS 3.0, there is an "Activity Feed", which can either pull from Twitter, or post to Twitter. You can only do one of the two, not both;

    Pulling From Twitter

    Set the following settings in your local.config.php file:

    Config::Set('TWITTER_AIRLINE_ACCOUNT', 'YOUR TWITTER ACCOUNT NAME');
    Config::Set('TWITTER_ENABLE_PUSH', false);

    Posting To Twitter

    1. Register an account for your airline on Twitter (if you don't already have one).
    2. Go to this URL: https://dev.twitter.com/apps/new (Or dev.twitter.com and find "Register an Application", in-case the registration changes).
      1. For name, enter your VA name
      2. For URL, enter the URL to your phpVMS site
      3. Application Type select "Client"
      4. Default Access type should be "Read & Write"
      5. [*]After registering, you will see the following settings, copy them, you'll need them later:

        1. Consumer Key
        2. Consumer Secret

        [*]Under "My Access Token", you'll see

        1. Access Token
        2. Access Token Secret

        [*]The following settings are in app.config.php, they must be placed in the local.config.php (or updated in the local.config.php file if they are already there), with the values filled from the sections above

        Config::Set('TWITTER_ENABLE_PUSH', true);
        Config::Set('TWITTER_CONSUMER_KEY', 'PASTE THE CONSUMER KEY HERE');
        Config::Set('TWITTER_CONSUMER_SECRET', 'PASTE THE CONSUMER SECRET HERE');
        Config::Set('TWITTER_OAUTH_TOKEN', 'PASTE THE ACCESS TOKEN HERE');
        Config::Set('TWITTER_OAUTH_SECRET', 'PASTE THE ACCESS TOKEN SECRET HERE');

        Tip: Enable the "Tweet Location, Add a Location to your Tweets" in your Twitter Profile settings, so that Tweets will be from the location they occur - for instance, a flight from KJFK to KBOS will tweet an arrival using KBOS as the location. New pilot's locations will be Tweeted from their hub


User Feedback

Recommended Comments

There are no comments to display.



Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...