I am developing a facebook application that has the following “structure”:
Browser window (facebook.com/page/xxxx)
I use the Like button in my application so that the iframe inside the iframe, when users click on a similar button, I would like to show the contents so that the page currently looks something like this:
if ( is_fan() ) { //show content } else { //show like button plus other text }
The actual logic for checking if the user is already a fan works as intended, the problem is that when I click on a similar button, I need the whole page to reload to show the “fan content” if I do this:
FB.Event.subscribe('edge.create', function(href, widget) { top.location.reload(); });
It seems that the page is reloading, but everything remains the same, but if I click "Like" and click the "Refresh" button in my browser, everything will be clearly visible.
Can someone help me figure this out?
Thanks in advance!
source share