mergPopActivity - URL not sharing

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, monte

Post Reply
ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

mergPopActivity - URL not sharing

Post by ToddFabacher » Sat Apr 16, 2016 2:37 am

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

ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

Re: mergPopActivity - URL not sharing

Post by ToddFabacher » Sat Apr 16, 2016 5:29 pm

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
Attachments
bitly.zip
Here is the code for bit,ly in livecode
(9.82 KiB) Downloaded 45 times

ToddFabacher
Posts: 280
Joined: Fri Jan 09, 2015 6:15 pm

Re: mergPopActivity - URL not sharing

Post by ToddFabacher » Sat Apr 16, 2016 6:48 pm

Thanks we found the issue in testing, sorry it was our fault. Enjoy the bit.ly code....Sorry Monte, our error.

Post Reply

Return to “MergEXT”