Error while trying to retrive the username in an iFrame facebook application -


I am developing a Facebook application with IFRAME RENDERER method. So to display my name, I used the serverfbml tag. This is my code:

  & lt; Fb: serverfbml style = "width: 760px;" & Gt; & Lt; Script type = "text / fbml" & gt; & Lt; FB: FBML & gt; & Lt; Fb: name uid = '$ user_id' useyou = 'false' & gt; & Lt; / Fb: Name & gt; & Lt; / FB: FBML & gt; & Lt; / Script & gt; & Lt; / Fb: serverfbml & gt;  

But the output is "Facebook User" Please explain to me why I get such output.

I echoed my $ user_id, and this ID displays.

According to the default text to display, if you can not see that the user facebook user < / Em>.

You can specify the second ifcantsee text to display with such property:

  & Lt; fb: name uid = '$ user_id' useyou = 'false' ifcantsee = 'this user can not see' & gt; & lt; / fb: name & gt;  

Says:

The wallet to display To specify an empty string instead of default, use ifcantsee = "" if the logged-in user can not access the specified user. The default value is Facebook user

< / Html>

Comments