-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround to get this working when placing scripts in the head of the page #54
Comments
@SPQRInc Do you happen to have |
Yes. This is my header:
|
Let's try this. $(function() {
console.log($('meta[property="fb:app_id"]').attr("content"));
$('p').selectionSharer();
}); instead of just $(function() {$('p').selectionSharer();}); and see if it prints If you don't mind me asking is your CMS a SPA or fully server-side rendered site? |
Hello. I have a similar situation. Сode
added, fb:app_id displayed in the console. But the selected text does not fall into facebook |
@12aleksandr12 did you mean something similar to this? |
thanks, figured out. |
Hello,
I am working on including your great script to an extension for a CMS.
This CMS allows me to add JS and CSS - but always to the heading of the page.
If I do
$(function() {$('p').selectionSharer();});
the popover appears and lets me share via twitter and mail - but the script does not recognize theFacebook App tag
.As I can not hack the CMS, I have to find a workaround for this script.
Any help is highly appreciated.
The text was updated successfully, but these errors were encountered: