You are not logged in.

#1 22/02/2012 06:23:47

iansane
Member
Registered: 22/02/2012
Posts: 3

welcome tab iframe app getSignedrequest function only works sometimes

Hi, I have just created my first fb app in a iframe. I managed to get through all the usual url related issues that seem to be causing a lot of people issues with the getSignedrequest() method. My app worked perfectly the first couple of times and then stopped working. I put in some echo statements to see what is going on and the like status is coming back empty. A couple of times the whole signed request array was empty but most of the time it's just the like variable.

If I log out or go to another browser it works once and then quits working again. What I mean by not working is, the 'like' button is gone because I've already liked the page but since the 'like' variable is empty, my app is showing non-fan content. So I know the issue is something in the getSignedRequest() method because facebook knows my user has already liked the page and removes the 'like' button.

Here is the app url.http://www.facebook.com/pages/Testcompany/245842635426802?sk=app_377848798909813

Could anyone go and like the page and then revisit it a few times to see when it stops working and let me know if you know what is causing the issue? I left the echo comments in so you can see when the signed request is working or partially working.

Thanks

Offline

#2 22/02/2012 16:24:48

iansane
Member
Registered: 22/02/2012
Posts: 3

Re: welcome tab iframe app getSignedrequest function only works sometimes

I think the issue is when testing the page as an admin. I'm going to put in a check for admin = 1 and see if that changes what shows for other users. I have 3 friends testing it and it's working for all of them but I used my own fake person account to test it and it didn't work sometimes. It may have to do with useing the same browser. I noticed when I change the css it takes a while for the change to propogate through fb so fb caching the app is part of the problem.

Offline

#3 23/02/2012 18:51:01

iansane
Member
Registered: 22/02/2012
Posts: 3

Re: welcome tab iframe app getSignedrequest function only works sometimes

Yep it was an issue of being logged in as admin combined with needing to wait for fb servers to update. Much like waiting for DNS for a new domain but not as long. Since the morning of day 2 it has been working perfectly when testing as another user. Still doesn't' always work when logged in as the admin but I need to make it show different content for admin anyway.

Offline

Board footer