iOS Question Share on Instagram,twitter,viber,whatsapp,..

Discussion in 'iOS Questions' started by Ramezanpour, Mar 18, 2015.

  1. Ramezanpour

    Ramezanpour Active Member Licensed User

    Hi

    How to Share a photo on viber or instagram?

    How about twitter , whatsApp And others.(facebook,wechat..)
     
  2. narek adonts

    narek adonts Well-Known Member Licensed User

    Ramezanpour likes this.
  3. Ramezanpour

    Ramezanpour Active Member Licensed User

  4. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Dim url As String = "instagram://location?id=1"
    If App.CanOpenUrl(url) Then App.OpenUrl(url)
     
    Ramezanpour likes this.
  5. ilan

    ilan Expert Licensed User

    (i know its an old thread but i was looking for how to share a text in whatsapp and this is what i found so i wanted to share the piece of code how to do that)

    to share text in whatsapp do it like this:

    Code:
    Dim txt As String = "Hello%2C%20World!"
    Dim url As String = "whatsapp://send?text=" & txt
    If App.CanOpenUrl(url) Then App.OpenUrl(url)
    to decode text to url you can use this sevice: http://www.url-encode-decode.com/
     
    Last edited: Jul 24, 2016
  6. Erel

    Erel Administrator Staff Member Licensed User

    You can use StringUtils.EncodeURL to encode it at runtime.
     
    jazzzzzzz and ilan like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice