Simbul / baker

The HTML5 ebook framework to publish interactive books & magazines on iPad & iPhone using simply open web standards
http://bakerframework.com
1.53k stars 378 forks source link

How to share content via Facebook in Baker? #1073

Open kekko73 opened 11 years ago

kekko73 commented 11 years ago

HI, I'm making a magazine and the client asked me to include the sharing facebook button into some pages. The button works but when I click on it a popup appears and it fill up all the ipad screen .. so I can't close this window to return into the app (I have to close the app and restart it). What can I do ? Is it possible to set the width and height of the sharing facebook window ?

Maxhodges commented 10 years ago

which technique are you using?

kekko73 commented 10 years ago

Hello, to share with facebook, the first stone load the images on an external server and then use this code for sharing

<a href="https://www.facebook.com/sharer.php?m2w&s=100&p[title]=app LAGO Bedroom&p[url]= http://www.lago.it/fileadmin/Foto_per_App/Fluttua_bed.png&p[images][0]=http://www.lago.it/fileadmin/Foto_per_App/Fluttua_bed.png&p[summary]=condivisoapp

Maxhodges commented 10 years ago

how about trying the FEED method (javascript integration) https://developers.facebook.com/docs/reference/dialogs/feed/

folletto commented 10 years ago

The JavaScript integration would surely be more effective, but I guess also more complex.

Did you try opening that link in the modal browser using the ?referrer=Baker syntax (details here)?

Given the URL above, might be something like:

https://www.facebook.com/sharer.php?m2w&s=100&p[title]=app%20LAGO%20Bedroom&p[url]=http://www.lago.it/fileadmin/Foto_per_App/Fluttua_bed.png&p[images][0]=http://www.lago.it/fileadmin/Foto_per_App/Fluttua_bed.png&p[summary]=condivisoapp&referrer=Baker