0

I have a webpage that is accessed directly but also through a Facebook page tab. I'd like to display a Facebook logo ONLY if users are accessing the page outside of Facebook. If the user is already viewing the page through Facebook here is no need to show the logo.

How would I achieve this?

asked Apr 30, 2013 at 19:02
0

1 Answer 1

1

Facebook will send POST data called 'signed_request' to your pagetabs.

https://developers.facebook.com/docs/howtos/login/signed-request/

In your php, you check to see if the page has received this request and act accordingly

if($_REQUEST['signed_request']){
 //hide logo
}else{
 //show logo
}
answered Apr 30, 2013 at 20:06
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.