Page 1 of 1

mergPopActivity - URL not sharing

Posted: Sat Apr 16, 2016 2:37 am
by ToddFabacher
We are using mergPopActivity, but we have an issue. The pop-up share appears, but there is no URL. We were experiencing issues with long URL, but we use bitly.com to shorten it. No matter if I click message, Facebook or twitter - the pText appears, but the URL never does?????

Code: Select all

command showShareOptions pText, pImagePath,  pURL
   replace " " with "%20" in pURL --replace space
   
   --If the length of the URL is 
   --put the length of pURL into tLength
   if tLength > 75 then
      put getShortURL(pURL) into pURL
   end if
   
   --Get out is not mobile
   if the environment is not "mobile" then 
      exit showShareOptions
   end if
   try
      mergPopActivity pText, "", pURL
   catch tError
      answer tError
   end try

Re: mergPopActivity - URL not sharing

Posted: Sat Apr 16, 2016 5:29 pm
by ToddFabacher
Someone ask for me to post the getShortURL code. Here it is... But please help with mergPopActivity. You will need to setup an account as a developer. Thanks to Gurgen on our team who did a great job on this.

--Todd

Re: mergPopActivity - URL not sharing

Posted: Sat Apr 16, 2016 6:48 pm
by ToddFabacher
Thanks we found the issue in testing, sorry it was our fault. Enjoy the bit.ly code....Sorry Monte, our error.