Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m seeing the same thing. Which API are you using to post to whatsapp? Offhand this one looks like the right thing for posting images there: https://developers.facebook.com/docs/whatsapp/api/messages/media/

    Suggested fix in sti.js:

    change this

    
    case "whatsapp" :
        url += 'https://api.whatsapp.com/send?';
        url += 'text=' + encodeURIComponent(data.title + ' ' + data.media);
        break;
    

    to this:

    
    case "whatsapp" :
        url += 'https://api.whatsapp.com/send?';
        url += 'text=' + encodeURIComponent(data.title + ' ' + data.page);
        break;
    

    to share the page link WITH a preview of the selected image in whatsapp.

    Plugin Author ILLID

    (@mihail-barinov)

    @heartfelttech

    Thanks for you reply. You are right with your code suggested. I already made such changes in the plugins code and they will be available with the next plugin release.

    Regards

    Thread Starter misstest

    (@misstest)

    Thanks a lot! ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Share the image, not URL’ is closed to new replies.