I've got a bit of a problem with a Facebook integration.
When my users click a link, a function checks if a user is logged into Facebook. If they are not logged in, I set a piece of data, and then run the Facebook login stuff. When Facebook returns that they login, I go check the piece of data that was stored and run the original function they selected.
The problem:
The Facebook function runs twice. There are some comments on their message boards about this issue, but it seems this has been an issue since the beginning of connect, and it isn't being addressed.
So, I don't want to wait for Facebook. Is there any way for me to prevent the function from calling my function more than once?
Can I set something that says 'run once'? The problem being that once it runs once, if the user clicks again, I will need to run it again, so I can't completely disable the function (even if that were possible).