@app.route('/profile/<provider_id>/post', methods=['POST'])
@login_required
def social_post(provider_id):
    message = request.form.get('message', None)

    if message:
        provider = get_provider_or_404(provider_id)
        api = provider.get_api()

        if provider_id == 'twitter':
            display_name = 'Twitter'
            api.PostUpdate(message)
        if provider_id == 'facebook':
            display_name = 'Facebook'
            api.put_object("me", "feed", message=message)

        flash((display_name, message) % 'Message posted to %s: %s', 'info')

    return redirect(url_for('profile'))
dataset/ETHPy150Open mattupstate/flask-social-example/app/views.py/social_post/swapped operands of `%`