Setting callback on wordpress


#1

Hi there

I’m trying to set twitter login on my wordpress site (installed in a subdomain). Everything is working as expected, I get the API authorization code, etc. The problem is that I want to use the same tokens for 3 different sites (all installed on subdomains), so I’ve put the main domain on the API details (under “website”) and leaved blank the “callback URL”. Obviously if I leave it like that, the API gives me the auth code and then send me to the main domain… not the subdomain site.

The idea is to force the URL on each site to return to the actual subdomain site (not to the main site stated on the API details). I imagine that this could be done modifying my theme’s social_auth.php on each installation, but I don’t know what to put there to make it work… Can anybody help me with this?

Thank you!