I'm trying to link my website with Facebook.
If I call the method in the PHP SDK called getLoginUrl(), it returns the correct login URL. This URL contains a number of parameters, one of which is my API key and it is correct. This is the URL that my Connect button is supposed to take me to.
However, when I actually click the Connect button on my site, a popup opens and says "Invalid API key specified". With a bit of inspection, I see that the URL in this popup says "api_key=undefined". In fact, the URL is completely different to what the login URL should be.
Any idea why this is happening? Only conflicts I can imagine are codeigniter or jQuery.
It's hard to be more specific. I'm guessing this will require good knowledge of the Facebook SDK to answer.
Thanks a lot. :)