Posting on Instagram/Twitter via iOS app

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Aduro91
Posts: 36
Joined: Sat Jul 22, 2023 8:49 pm

Posting on Instagram/Twitter via iOS app

Post by Aduro91 » Mon Jul 31, 2023 8:51 pm

I'm looking to allow users of my iPhone app to click a share button, which will then set up a post on Twitter/Instagram etc with an image of their highscore and some text with hashtag. I've seen a VERY old extension called mergSocial, but I'm not sure whether this will still work.

Has anyone sorted this out on their livecode app more recently?

Cheers!

Aduro91
Posts: 36
Joined: Sat Jul 22, 2023 8:49 pm

Re: Posting on Instagram/Twitter via iOS app

Post by Aduro91 » Mon Jul 31, 2023 9:13 pm

It seems mergSocial might not function anymore, but mergPop may be used for this purpose. I'll report back once I've given this a go with any success I've had.

stam
Posts: 2722
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Posting on Instagram/Twitter via iOS app

Post by stam » Tue Aug 01, 2023 1:36 am

Should be possible to do this with the APIs each service provides?

Aduro91
Posts: 36
Joined: Sat Jul 22, 2023 8:49 pm

Re: Posting on Instagram/Twitter via iOS app

Post by Aduro91 » Tue Aug 01, 2023 4:43 pm

stam wrote:
Tue Aug 01, 2023 1:36 am
Should be possible to do this with the APIs each service provides?
That would be possible I believe, and it may even be possible with a free basic API access.

However, I managed to do a very basic version of this with mergPop, where the screenshot becomes ready for the user to send to any of their social media or save in their files. I use the following code which works for iOS and I believe any other platform (without the spaces after 'screenshot'):

on mouseup
put specialfolderpath("documents") & "/" & "screenshot .png" into myFile
if there is a file myFile then delete file myFile
set the filetype to "????PNGf"
export snapshot from rect (the rect of this stack) to file myFile as PNG
mergPopActivity ,,("file:" & specialfolderpath("documents") & "/screenshot .png")
end mouseup

Post Reply

Return to “Talking LiveCode”