CS5 and "Share on Facebook" button

338 views
Skip to first unread message

Melissa Nickles

unread,
Jan 10, 2011, 5:38:09 PM1/10/11
to indesi...@googlegroups.com
Hi there, CS5/Mac here. I've been asked by my web team if I can embed a
"Share on Facebook" interactive button in InDesign to be active in a
downloadable PDF. This isn't the vanilla "pop a URL into the button's
behavior field" sort of button, it's more of an action, where it links my
PDF to someone's Facebook page. They were so kind as to give me the
javascript code. Problem is, I have no experience with scripting, and I'm
not sure if InDesign will let me embed a javascript action into an
interactive button.

The bigger picture is that they'd like a Facebook, Twitter, Email and Print
button to be active from the PDF of my InDesign file. Is this possible in
InDesign or Acrobat 9? Does anyone have any knowledge they can impart on
this scripting neophyte?

Cheers.
Melissa
[digest mode]

Bret Perry

unread,
Jan 10, 2011, 5:58:47 PM1/10/11
to indesi...@googlegroups.com
Not sure about coding the button from within InDesign -- someone else may know that.

This may get you started...
You can, however, add buttons to Acrobat 9 docs and run JavaScript with them.

Tools... advanced editing ... Buttons, draw your button and double-click the button to edit it.

In the properties dialog that pops up to edit button, the "Actions" tab is where the JavaScript would go, choose "Select Action" drop-down, then "Run a JavaScript" then click "Add" button and type your code into the JavaScript editor window that pops up.

Note that "Share" is depreciated by Facebook and developers (you) are advised to use the "Like" button instead of "Share" (although many big players are still using share).

In your case, it sounds like you are really doing a "Post" not a "Share" -- you are uploading a PDF to someone's FB page?

Cheers.
Melissa
[digest mode]

--
you are subscribed to "InDesign talk" on Google Groups, to post: send email to indesi...@googlegroups.com, to unsubscribe: send email to indesign-tal...@googlegroups.com, for more options visit http://groups.google.com/group/indesign-talk


C F Majors

unread,
Jan 10, 2011, 11:04:40 PM1/10/11
to indesi...@googlegroups.com
WOW ... I am fascinated. Could ID do this?

> --
> you are subscribed to "InDesign talk" on Google Groups, to post: send email to indesi...@googlegroups.com, to unsubscribe: send email to indesign-tal...@googlegroups.com, for more options visit http://groups.google.com/group/indesign-talk
>

--
Carol Majors / Publications unltd
Raleigh NC
.   .   .   .   .   .   .   .   .   .   .   .

mnickles

unread,
Jan 11, 2011, 11:35:49 AM1/11/11
to InDesign talk

> In your case, it sounds like you are really doing a "Post" not a "Share" -- you are uploading a PDF to someone's FB page?
>

Exactly, Bret. The end result of clicking the "Facebook" button would
be that the "Post to Profile" window that pops up. It allows you a
field to share "what's on your mind" and the link to the URL where the
PDF is located. The hope is that the PDF itself could be shared, not
just "Liked".

Thanks for the info about running javascript in Acrobat 9, no chance
that InDesign has this functionality hidden somewhere? Or as a third
party plug in? It would be far less tedious to set up buttons in our
InDesign file template and change the code there than build buttons
individually in the million PDF versions that result from each
InDesign file. Yuck.

henk deleye

unread,
Jan 12, 2011, 4:39:18 AM1/12/11
to indesi...@googlegroups.com
hi all

we did this :
in indesign make button with action: on release goto url
url = http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.your-url-of-pdfpage-here.be&src=sp

you can see it on the last page of one of the pdf on www.yourtimetoshine.be

hope this helps
Henk

2011/1/11 mnickles <melissa...@xerox.com>

mnickles

unread,
Jan 19, 2011, 12:22:16 PM1/19/11
to InDesign talk
Great Scott, Henk...that did it!

Is there a similar solution for your twitter link? My interactive PDF
life is about to be transformed...

Thanks!
m.

> we did this :
> in indesign make button with action: on release goto url
> url =http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.your-url-of-pdf...
Reply all
Reply to author
Forward
0 new messages