Twitter sharing does not show attached link

edited August 2015 in Social Sharing
I tried to share a text with a link on twitter, but the link is not present in that tweet. Is this a bug or there is a different way to do it?

image

The request below has 136 characters with the link (gist).

{ "request":{ "sharing_message":{ "publish_for_user":{ "user_token":"xxxx-xxxx-xxxx-xxx-xxxxxx", "providers":[ "twitter" ] }, "parts":{ "text":{ "body":"Para quem procura uma ótima Faculdade, a FAPPES está com inscrições abertas para o Vestibular! #euRecomendo #FAPPES" }, "link":{ "url":"http://goo.gl/CGPcEM" } } } } }

Best Answer

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited August 2015 Answer ✓
    The Twitter API has in fact no distinct field to specify a link.
    You have to add the link to the text->body, like this:

    { "request":{ "sharing_message":{ "publish_for_user":{ "user_token":"xxxxx-xxxx-xxxx-xxxx-xxxxxxxx", "providers":[ "twitter" ] }, "parts":{ "text":{ "body":"Para quem procura uma ótima Faculdade, a FAPPES está com inscrições abertas para o Vestibular! #euRecomendo #FAPPES, http://goo.gl/CGPcEM" } } } }

    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.