Post on Facebook

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Post on Facebook

Post by Jellobus » Thu Feb 19, 2015 1:49 am

Hi, 8)

I trying to use the facebook social share script I have learned from summer school but it seems not working.
This is the script from the lesson.

Code: Select all

on facebookShare
   local tTitle, tLink, tMessage, tFacebookURL
   
   put "I posted this from the LiveCode Summer School App" into tTitle
   put the uText of group "status" into tMessage
   put "http://livecode.com" into tLink
   
   put "http://www.facebook.com/sharer/sharer.php?m2w&s=100&p%5Btitle%5D=" & urlEncode(tTitle) into tFacebookURL
   put "&p%5Burl%5D=" & urlEncode(tLink) after tFacebookURL
   put "&p%5Bsummary%5D=" & urlEncode(tMessage)  after tFacebookURL
   
   launch url tFacebookURL
end facebookShare

It ONLY displays tLink without title and message.

Could anyone correct it and also tell how to attach screen shot of image in the stack to the wall of Facebook?

Thanks a lot in advance!

Louis

LCNeil
Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Post on Facebook

Post by LCNeil » Thu Feb 19, 2015 9:58 am

Hi Louis,

I believe Facebook have changed this API so it is no longer possible to post titles and message text via the sharer URL.

More information on this can be found here-

http://stackoverflow.com/questions/2095 ... parameters.

There looks to be an alternative method disucssed in this post. I hope this helps.

Kind Regards,

Neil Roger
--
LiveCode Support Team ~ http://www.livecode.com
-

Post Reply