See referral Facebook page in page tab app - facebook

Let's say i have a Facebook page tab (iframe) app that i want to connect to multiple Facebook pages, so users can enter the app through more then 1 Facebook page. Now my question is; is there a way to see if they visited the page tab app through Facebook page A or through Facebook page B?
Thanks in advance.

yes u can
use page signed request using this you can get facebook Pageid and userid
for page signed request documentation here
http://developers.facebook.com/docs/authentication/signed_request/

Related

Facebook Page Plugin URL

When using the Facebook Page Plugin code generator, it asks for Facebook Page URL. Whenever I put the correct URL in I get an error.
For the life of me, what is the correct Facebook page URL? I'm just going to my Facebook home page and coping the URL and its giving me this error.
You need to put a Facebook fan page not a personal profile.
facebook.com/facebook <- fan page
facebook.com/zuck <- personal profile
For personal profiles use the https://developers.facebook.com/docs/plugins/follow-button

C# Facebook sdk: posting on page on owner's behalf

I have a page on facebook and i want to get my page access token so that i could use it to post ob my page from a mobile application or web application using the facebook sdk for C#.
I think the whole idea would be:
user will go to my webpage.
user will then login to facebook.
user will be taken back to my page with the his page's access token.
i will save this access token and then use it to post on his page on his behalf.
Right now i am not sure whether these are the right steps or not and if i am right, how can i make a facebook login page where user can use?
EDIT:
I found some answer here: Programatically log in to facebook and post from server side
do i need to create a facebook app for that?

How to redirect user to login page before using facebook app?

I have created an app(canvas page) on facebook using PHP. I see that users without logging in to facebook can see the canvas page http://apps.facebook.com/svolzesocial
How to redirect user to facebook login page before using app?
For example, when we open Mashable Social reader, if the user is not logged into facebook he gets redirect to another facebook login page like as shown in image below.
http://i.stack.imgur.com/zwceW.png
I want exactly like this only.
Since your page is in a canvas app, you should be receiving a signed_request parameter posted to your server. You should decode the request and determine if the user has already authenticated your app. If the user has already allowed your app, just serve up the page they requested. Otherwise you can just serve up a blank page that contains JavaScript call to redirect the user to the login screen.

Facebook page app

I`m an admin on a facebook fan page. The problem is that when I try to create an app for facebook fan page, facebook redirects me to my profile, and thus I will be creating an app for myself and not the facebook fan page.
Is there a way to do this?
I need to do this so I would get app ID and app Secret for facebook fan page.
Kalvin Klien, please don't fall over getting out of bed, but you will need to use a user profile to create apps, not a page profile. It is documented here:
Create new app from Business account
Create a Facebook APP goes in circles back my page
Can company page accounts create apps?
If you want facebook to tell you, please
1) Log into your facebook account
2) Switch to using your facebook page (aka business page)
3) Go to: https://developers.facebook.com/apps
4) Read error message that says:
To access this page, you'll need to switch from using Facebook as your
page to using Facebook as yourself.

Facebook request change according to different login

Will the facebook fetching a tab application differs according to different login?
If I am login as application admin or page admin then facebook fetches the application through POST and if i am login as a normal user, then facebook fetches the page through GET
As I know, Facebook integrate with your app (iframe) with only one method (i.e POST). Everything you put on app URL facebook will post to your iframe.
For example apps.facebook.com/your_app/id/1, Facebook will POST id=1 to your iframe.
However, you can check an user whether is an app/page admin or not by using Open Graph API:
http://developers.facebook.com/docs/reference/api/page/#admins
I think you question somehow relate to this:facebook application API check if user is application admin in facebook
Hope this will helps.