hyesubba
Forum Replies Created
-
Sure, you can provide.Is it this one – https://downloads.www.ads-software.com/plugin/selection-sharer.zip?
That reply was almost one year ago, the version of plugin at that time might be old. We may have to freshly look at the problem, recent updates of FB and see what to do probably. Will let you know if I find anything.
Hi,
Any help on this ?
Regards,
SubbaThanks for your quick response and replies, now posted against the correct plugin page.
Oh no, sorry I have mentioned a wrong plugin name here, I wanted to post it for another plugin.
It works fine in chrome, firefox. Problems only in IE and Edge. Is it supported ? Any way we can fix ?
I was working on the first problem co-incidentally and happened to see this question, and so posted that solution alone here. Regarding the second problem, the problem of no spaces in title is not coming for me on my site. It may need some more checking about what is happening at your end.
For title to be default title instead of selected text,
can you try removing &name=”+encodeURIComponent(t)+” in the sentence. Then, facebook should take whatever you have in <title></title> tags in your html code. Or in case you have enabled facebook open graph tags, the og:title meta tag title would get reflected.For description, as per my understanding facebook does not provide any option to display what we want. It would display whatever is in description meta tag or og:description meta tag (in case you are embedding FB open graph tags). So, not sure if we can take to comments section the title.
But, my experience may be limited, may be jcvangent can see if he has something.
For me, following changes made it work.
File: plugins/selection-sharer/js/selection-sharer.js
I changed below line:
this.shareFacebook=function(e){e.preventDefault();var t=n.htmlSelection.replace(/<p[^>]*>/gi,”\n”).replace(/<\/p>| /gi,””).trim(),o=”https://www.facebook.com/dialog/feed?app_id=”+n.appId+”&display=page&name=”+encodeURIComponent(t)+”&link=”+encodeURIComponent(n.url2share)+”&redirect_uri=”+encodeURIComponent(n.url2share);window.location.href=o,window.open(o,”share_linkedin”,”toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=”+w+”, height=”+h+”, top=”+top+”, left=”+left)},
Changed line to below (changes in bold):
this.shareFacebook=function(e){e.preventDefault();var t=n.htmlSelection.replace(/<p[^>]*>/gi,”\n”).replace(/<\/p>| /gi,””).trim(),o=”https://www.facebook.com/dialog/feed?app_id=”+n.appId+”&display=popup&name=”+encodeURIComponent(t)+”&link=”+encodeURIComponent(n.url2share)+”&redirect_uri=”+encodeURIComponent(n.url2share); var i=640,r=440,a=screen.width/2-i/2,l=screen.height/2-r/2-100; return window.open(o,”share_facebook“,”toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=”+i+”, height=”+r+”, top=”+l+”, left=”+a)},