• Resolved liujunjie688

    (@liujunjie688)


    Hi NextScripts,
    Firstly, thanks for powerful free plugin. I appreciate the complexity in handling so many APIs, along with all the automation. Will go Pro once I can find solutions for the following.

    Issues with attaching images
    ============================
    I’m getting inconsistent results when trying to insert an image from custom field using “Advanced “Featured” Image Settings”. Setup is as follows:
    URL Shortener
    Force Shortened Links: unticked
    goo.gl: ticked and with working API key
    Advanced “Featured” Image Settings
    Custom field name: my_image (CF contains full URL…not shortened)
    Custom field Array Path: <empty>
    Custom field Image Prefix: <empty>
    Post Options
    URL to use for links, attachments and %MYURL%: unticked
    Shorten URL: Auto
    Message Format: %IMG%
    Attach Image to the Post: ticked

    The various results I am getting are:
    -sometimes just the image is displayed (wanted/expected)
    -sometimes the URL is displayed but is truncated, then is followed by the image
    -sometimes just the URL is displayed but is truncated
    -sometimes I get twitter card

    How can I ensure that just the image is shown? Do I have a valid expectation?

    Issues with displaying URLs
    ===========================
    Twitter Cards are great because the card is clickable. But sometime I instead wish to attach image (as above) and include a clickable link (shortened URL) in the autopost displayed as text. However, a majority of times when autoposting with message format containing the following…
    %URL%, or %SURL%, or a manually entered URL in either short or full format
    …the URL gets converted to a Twitter Card. Is this something that SNAP plugin is doing? Or how SNAP is using the API? Or is this Twitter behavior?

    So question is, how can I display a clickable text link when autoposting to twitter, ensuring that it’s not converted to a Twitter Card?

    Thank you in advance for your support time.

    Regards,
    Sean

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author NextScripts

    (@nextscripts)

    1. What is difference between the contents of the “my_image” field in the posts that have a correct image and broken URL? Can I see some examples?

    2. SNAP has absolutely nothing to do with Twitter cards. Twitter assigns cards for approved domains by itself using it’s special metatags.

    Please see here: https://dev.twitter.com/cards/types/summary

    Thread Starter liujunjie688

    (@liujunjie688)

    Thank you for prompt response.

    1/ I’m seeing this different image attaching behavior for the same post. That is: SNAP post to twitter, check result, delete post on twitter (not happy with result), then SNAP post again.

    2/ So what you are suggesting here is that when twitter receives a post containing a URL for the same site or post, it then decides to replace the URL with the Twitter Card? Because what I’m experiencing is that Twitter Card is only being displayed when the message format contains a URL. It may very well be twitter behavior. I’ll try a post from twitter interface and check if same behavior.

    Regards,
    Sean

    Thread Starter liujunjie688

    (@liujunjie688)

    Some test results from tweeting via twitter site:

    Attaching images
    =================
    1a/ Image URL pasted in the tweet is displayed as text, and truncated if too long. Clicking on the link then successfully loads the image in browser (so link is not broken).
    1b/ If image is added using insert image function with the URL entered in the file manager (instead of selecting a local file), then the image is successfully attached and has a unique twitter URL.
    So would that suggest that the image is not being attached properly by SNAP, since result is same as result 1a ?

    Displaying URLs
    ===============
    2/ Site URL entered in the Tweet body is converted to a Twitter Card once posted. So confirmed twitter behavior. My apologies, I should have considered checking this before.

    Regards,
    Sean

    Thread Starter liujunjie688

    (@liujunjie688)

    So issue 2 is closed (no issue…twitter behavior).

    Issue 1
    =======
    Sorry, I forgot to add example of the CF content, which is the URL to the image. Here it is:

    https://www.yourabcdefghijklmnopqr.com/wp-content/uploads/png/abcdef-daily-abcdefghijkl-abcdefghi.png?1510926666

    Note I’ve modified/hidden the actual URL, but the real URL is with same number of characters. Note the ?parameter is timestamp to work around caching as the post is updated daily. The actual file is saved without the ?parameter. There are no issues accessing the image with the ?parameter (e.g. displayed OK if entered into browser, or by clicking the truncated URL within the tweet).

    I get same behavior if I use %IMG% along with “Advanced “Featured” Image Settings” with “my_image” defined, or if I just try including the URL using %CF-my_image%

    Plugin Author NextScripts

    (@nextscripts)

    %IMG% is useless for Twitter. It does not insert the actual image, it inserts the URL of the image, and yes, it could be truncated.

    The only way to attach image to Twitter post is to check “attach image” checkbox.

    Thread Starter liujunjie688

    (@liujunjie688)

    Hi NextScripts,

    I had initially tried without %IMG% and with checked “attach image” checkbox but it was not working. Thus I started to play around with %IMG% then had inconsistent image attachment. I removed %IMG% again and there was no image attachment. Settings looked OK.

    I’ve now got image attachments to work as follows:
    I selected all delete/clear options from the help/support screen, deactivated and deleted the plugin, reinstalled plugin then manually reconfigured. Note I had previously reinstalled then imported saved configuration but no luck. So the manual config may have been the solution. All manual settings were visibly the same as before.

    Here is summary:
    1/ Issue: Images not being attached to tweet, even though “attach image” checkbox as ticked.
    Fix: Needed to delete plugin, reinstall then manually reconfigure. Helpful to know that checking “attach image” checkbox is all that is needed (i.e. no need to do anything in the message format).

    2/ Issue: Site URL entered in the Tweet body is converted to a Twitter Card once posted.
    Fix: Confirmed twitter behavior. Workaround was to disable twitter card support in Yoast, then republish the post before tweeting.

    Thank you for your support. The confirmations on SNAP and twitter expected behaviors were helpful.

    Regards,
    Sean

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘adding images and urls with twitter autopost’ is closed to new replies.