Want to share a specific block or div from my entire facebook page

I have a requirement that on a webpage I have several blocks of content that are wrapped inside a separate DIV. Each block must be granted access to the facebook button. There was a lot of research, but no solution was found. Please someone can give me a suitable code or idea how I can share certain blocks / content enclosed in a facebook div.

For example, I have three DIVs on my page, and each DIV has a sharing button when a user clicks on any of the sharing buttons to which the DIV belongs.

Is there any solution to this requirement or is it possible to do so. Any suggestions are widely recognized.

+8
facebook share
source share
1 answer

Check out this HyperArts tutorial on adding the Share button to the iFrame tab - you use the same code for your web page. You will use the Facebook JavaScript SDK .

The end of the tutorial explains how to modify it to allow multiple Share buttons on the same page. You just need to add a unique identifier for each of them.

+4
source share

All Articles