Skip to content

Social Share in popup #22

Description

@AndreaGelmini

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions