Take the 2-minute tour ×  I want to make the height of a layer
dependent of the fact if the user is logged into Facebook or
not. I've tried to see if a user is logged in to Facebook using
their cookie but this didn't work.  height: <?php
if($_COOKIE["c_user"]){echo "100px;";} else{ echo "50px;";} ?>
Most solutions I found were speaking about apps within Facebook
but this is not what I'm searching for. My website just only
needs a hight which is dependent the user is logged into
Facebook or not...  share|improve this question If you're
talking about whether the user is logged into Facebook
independent of Facebook login to your site, this is not
possible. Otherwise, @ShaneCurran's answer should help.
(Although he references the JS API, you can do something similar
in PHP as well.) –  Michael Mior Nov 3 '12 at 20:23 add comment
2 Answers  Facebook's API has a function for this: https://devel
opers.facebook.com/docs/reference/javascript/FB.getLoginStatus/
It would return JSON containing a "status" paramater. If