I saw several posts here and around interwebs explaining how to create a custom Facebook sharing dialog for my website.
But I found several differences from the average situation for mine:
1- I want the user area on my page to open and close when people click the button (sharing button)
2- I want to share the contents in a lightbox, not with the contents of the page. For example, we have a list of products, each product will be opened in a lightbox. I want to share information about this product, which is now open in the lightbox.
I saw someone talking about the Javascript SDK, but in the installation guide he tells me to set the APP_ID, but I do not have an application for my site. Should I create it to use this SDK?
I also found this template
http://www.facebook.com/sharer.php?s=100&p[title]=a title&p[summary]=a description &p[url]=http://www.linkhere.com&p[images][0]=http://www.linkhere.com/image.jpg
If I copy and paste this into the address bar, it works. but the user is redirected to a new page. it is unpleasant.
and I tried this with the template above but couldn't get it working
<a href="#" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=626,height=436'); return false;"> Share on Facebook </a>
It does not accept the parameters that I am trying to pass.
Do any of you know how to solve this problem? Will this be a change to the "content" of the meta tags? What are your solutions?
@EDIT
Just answered using the solution I used
@EDIT 2
Updated v2.2