I referer to this code which I’m trying to use to log a facebook user as a wordpress user. However the while the user is registered the is_user_logged_in() would repeatedly state false. Can anyone give me some insight as to what I might be doing wrong?
Share
I wrote a wordpress loginas.php page, hence, a really big security hole 🙂 :
And, after I delete all cookies, it is working very well. So, I suppose you could have a problem with something that is executed before your code.
Actually I’m still unable to figure out what’s happening in your code, could you try to change priority of execution of your
inithook and move at very first position.Please pay attention, in order to execute your correctly your programmatically authentication, WordPress requests should be always done on same domain where the cookie is created.