So, I am using an iFrame on my tab and I am doing one of those "like roadblocks" where the user needs to like the page in order to view the secret content. Is there a better and more seamless way of doing this then having to ask for permission?
I know for tabs built with FBML, they dont ask for permission, but I am guessing that is because it is NOT an iframe.
Thanks!
Of course you can! As mentioned in the documentation, Facebook will send you some extra details in the
signed_request
:The code taken from my tutorial should be something like:
UPDATED CODE: While the previous code would work. I wasn't checking the validity of the request. This means someone could tamper the request and send you false information (like setting the
admin
totrue
!). Code has been updated, following thesigned_request
documentation approach.