Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Investigate whether Facebook connects from WordPress subdomain #255
A user has two different sites on the same server. One connects to Facebook fine, the other does not. The only noticeable difference is that one site is installed on a subdomain.
Testing on the customer's subdirectory installation, I found that
The cause of this issue is related to the redirect URL that is passed to the
This means after the Facebook connection occurs on WPBR website, it is redirected back to the plugin Settings URL containing
We need to figure out how
Here is the line where the redirect URL is generated:
WordPress being on a subdomain was a total coincidence and did not affect the solution.
It turns out the user had constants set in
Example of wrong constants:
Changing them to use
Please keep this in mind for future issues regarding Facebook connection issues.