Bug - Unable to post images to Twitter

I cannot post an image to Twitter. I followed the following example https://docs.oneall.com/api/resources/users/write-to-users-wall/

It contained an image section but after posting I only see text, no image. I know Twitter API supports post images.

Please advise how to post images to Twitter or make changes to oneall code to allow us to post images.

Thank you

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited April 2015
    Hi Thomas,

    to post an image you must use the uploads section:

    "uploads":[ { "name": "#upload_file_name#", "data": "#upload_file_data#" } ]


    #upload_file_name#
    The name of the file to be uploaded,
    Example: image.png

    #upload_file_data#
    The base64 encoded representation of the file data,
    Example:<?php $data = base64_encode(file_get_contents('image.png')); ?>

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.