Page 1 of 1

Post on Facebook

Posted: Thu Feb 19, 2015 1:49 am
by Jellobus
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

Re: Post on Facebook

Posted: Thu Feb 19, 2015 9:58 am
by LCNeil
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
-