1. Fabrik 3.7 is now available. This version contains critical security updates, please update as soon as possible. Please remember to backup your site before updating, we also recommend testing your updates on development sites if possible.

Twitter form plugin

Mar 13, 2016
Twitter form plugin

  • Introduction(top)


    The twitter plugin allows you to send tweets from your Fabrik forms. It requires a minimum of PHP 5.5

    Options(top)


    twitter.png

    • Consumer key - Set up your twitter application here https://twitter.com/apps then enter the supplied consumer key here. This key along with the 'consumer secret key' form your application's the identification credentials"
    • Consumer secret key - Set up your twitter application here https://twitter.com/apps then enter the supplied consumer secret key here. This key along with the 'consumer secret key' form your application's the identification credentials"
    • Message Element - The element on your form which contains the message text to update twitter with. Leave this blank if you want to use a Tweet Template instead"
    • Tweet template - This is the text that is sent to twitter. Use {tablename___elementname} placeholders to insert the form's data into the tweet. Only used if the Message Element has an empty selection"This MUST be an unique message so MUST include a placeholder. Otherwise you get this error message
    403;: Status is a duplicate

    • Show success message - If we successfuly send a tweet, show we add a notification message to the page informing user of success"
    • Bit.ly Login - OPTIONAL - if both Bit.ly login and API key are specified, all URL's found in your tweet will be bitlyfied. To obtain your Bit.ly API credentials, go to http://bit.ly/a/your_api_key"
    • Associate an account - Press the 'sign in' button to associate your account with this form. When the form is submitted the twitter message will be posted to this account. Leave blank or clear to enable the user submitting the form to post to their own twitter account."
    • Bit.ly API Key - OPTIONAL - if both Bit.ly login and API key are specified, all URL's found in your tweet will be bitlyfied. To obtain your Bit.ly API credentials, go to http://bit.ly/a/your_api_key"
    • OAuth secret token - Auto filled in when you have successfully associated an account
    • User - This is the current user you have associated the form's twitter plug-in with. All messages created when the form is submitted will be posted to this account"

    Setting Up Your Twitter Application(top)


    Sign into the twitter developer site (https://dev.twitter.com/)
    Then go to https://dev.twitter.com/apps

    If you have not done so create your application

    Then edit it and under Settings > Settings Tab > Application Type > Access Level > select at least "Read and Write". And, most importantly, set the Callback URL. I was able to just use my domain without any other parameters. Then update these settings.

    Next go Details Tab > Your Access Token > Recreate My Access Token. Make sure that the Access Level updates to reflect any changes. Then copy the updated information into the twitter plugin on your form.
  • Loading...