Embed a facebook post into a html widget

social

(kostas) #1

I am trying to embed a Facebook post into my hype project but nothing seems to work correctly. I copy the code Facebook provides and i paste it into a html widget. In safari all work correctly. But if i export in a iBooks author widget and place it into a book at the device nothing appears. I read some threads here about embedding share button. Try the method you describe but i can’t accomplish the correct result. Some help pls.Thank you in advance.


#2

Can you share the code you’re using?

I don’t think Facebook includes the protocol. I believe it uses a URL like //cdn.site.com This is great for most purposes, but you may want to edit it to include https://cdn.site.com so that the iBook widget knows what to do with that URL.


(james koh) #3

This is what I did for my homepage.
http://www.digipubkorea.com/#facebookpage
I will share the code ASAP.


(james koh) #4

in html widget you should put code like this

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F |*yourfacebookaddress|*/&width=600&colorscheme=light&show_faces=true&border_color&stream=true&header=true&height=1024" scrolling="yes" frameborder="0" style="border:none; overflow:hidden; width:600px; height:1024px; background: white; ; " allowtransparency="true"></iframe>