Toddish / Popup

A barebones, flexible jQuery popup plugin. Designed for developers, it's simple to use but very powerful.
http://docs.toddish.co.uk/popup
MIT License
146 stars 78 forks source link

Social Share in popup #22

Open AndreaGelmini opened 8 years ago

AndreaGelmini commented 8 years ago

Hello and thanks for the great plugin is very useful to me . I'm working on a site with wordpress , specifically in a section with social buttons to share posts and pages . When I try to open the link by sharing on facebook me this error appears in consol

XMLHttpRequest cannot load https://www.facebook.com/sharer/sharer.php?pt=url&pw=520&ph=350&phu=http://agconsulting.altervista.org/test-nl-aef/consulenza/test-prodotto-3/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://agconsulting.altervista.org' is therefore not allowed access.

While surfing I found this possible solution , just do not know how we can implement .

`Use this line given below instead of header() function.

echo "window.top.location = 'https://apps.facebook.com/yourappnamespace/';";`

Unless you have not already a solution for social popup.

Ciao