I now have a Page ID for my page tab app from the signed_request. I am attempting to use that Page ID as a link for Pinterest for the 'Viewer' of the Page Tab to click on. I have looked around this site and the closest thing I can find is;
http://www.facebook.com/pages/#/PAGEID
This gets me into the users facebook wall, but not directly onto the Tab App. Is there additional information required to get me directly into the Page Tab where the app is located?
Thank you
All you need is the page id and your app id. Use this:
http://www.facebook.com/pages/#/PAGEID?sk=app_APPID#
So for example, if the page id was 987654321 and my app id was 123456789, then the link would be
http://www.facebook.com/pages/#/987654321?sk=app_123456789#
Of course, you wouldn't hard-code the page id into the link, it would be a variable depending on which page the app is installed on.
Related
I am having Google Play link(Android) and iTunes App Link(iTunes). I want to create a Facebook tab for my business page and on click of Facebook tab, my Google Play link can be opened.
I have registered myself on developers.facebook.com/apps and created a new App. Now Under Basic Info I get confused on what to enter the value for App Domains so I have entered play.google.com because my Google Play link starts with this.
Now under Page Tab, I have entered all the required information but entered probably the wrong value for Page Tab Edit URL . So I finally save my application but it is not working.
So now I have deleted my Page Tab section and I then switched over to App on Facebook section where under Canvas URL I have placed my Google Play URL with all the required details and then submitted for review.
Before I submit for the review finally it asked me that there should be no external URL used But I have used my Google Play URL in the Canvas URL section which is external.
I am completely confused now with this Facebook. I have also Googled a lot but with no result for me.
Please Guide me on integrating Android link(play.google.com) as Facebook Business Page tab.
Thanks !
I have solved this issue by using static iframe facebook application
What I did is simply created my desire page in HTML and placed it on my server and by static iframe facebook App, I called this page into IFrame.
Problem solved !
I have a problem with my fanpage. A gallery script is running a my webspace and i put it in the app also in th iframe of the Fanpage. The gallery script has get an Share button to post the photos on facebook. This part of it is running fine but when i clicked the link that was posted in Facebook i had been reffered to my page on my webspace and not to the iframe with the webpage and the photo. Is it possible to edit the link to go to this page in facebook iframe?
This is not a problem in general. You can try to redirect your website into the Facebook tab application my checking the HTTP_REFERRER and the url. You might have a look at this example
There is an URL you can try to call and see if you get redirected to the right application. Additionally, you can add app_data-parameters to the URL to identify the real target into your app.
All that can be done by the following code:
// set the target facebook page name and id to perform a forceRedirectToTab()
$tmpFbHelper
->setPageName($iniHandler->getIniSetting('facebook.'.fbHelper::getAppNamespace().'.page.name'))
->setPageId($iniHandler->getIniSetting('facebook.'.fbHelper::getAppNamespace().'.page.id'))
->setSecret($iniHandler->getIniSetting('facebook.'.fbHelper::getAppNamespace().'.secret'));
// perform a redirect to the facebook tab application if someone opens the url out of facebook
// the facebook-linter is not affected by this :)
$tmpFbHelper->forceRedirectToTab();
// perform a deeplink if for example a special url is called or you identify some app-data
$tmpFbHelper->performDeeplink();
You will have to look at your published links into the stream so that the PHP-code finds out that you will redirect and deeplink!
I hope this ideas might help you :)
I wonder if someone can answer this;
I have a canvas app, which in turn allows the user of the app to attach another app into their page tab. Everything works great. The page tab is now running from the users account.
If a 'Viewer' interacts with that app on the users page tab, i know I cannot get their user id, but how can I get the actual URL of that page they are on, so I can update Pinterest for the 'Viewer'.
Some people state that I need to access the signed request and some say the graph for the Page ID. Which one is the correct way to get the Page ID, or does it even matter ?
Thank you
Take in account that your app always will receive the signed_request var from FB. So why don't use it? Using php-sdk you can obtain it like this:
$signed_request = $facebook->getSignedRequest();
// so for the page ID you do:
$page_id = $signed_request['page']['id'];
I have website with like button and facebook page that was created manually. I want link these pages. So when user clicks like button, he subscribes on facebook page and he will recieve all updates in the future. How can
This would depend on if the like button is "liking" your Facebook page, or your website URL.
If it's liking your Facebook page, then the user is automatically subscribed to all those updates - just like if the user had clicked "like" on Facebook.
If it's liking your website URL then you can't make them automatically like the facebook page too.
I think, when you put like button of you FB page its linked automatically.
I am developing a tab based Facebook application that lets the users add custom tab to their page. I want to add a link for page admins to edit the tab, but the problem is how to get if the logged in user is a page admin?
I know how to do this is the old API, which are to be deprecated soon. I am using the new Graph API and new JavaScript SDK.
Don't know how to do it with that.
Take a look at the fb_sig_is_admin parameter which is 1 when the user is an admin.
Unfortunately you won't know who the user is with a tab until they interact, so the usefulness of the Graph API is limited.
I think there is a better way for that, a few days ago FB started supporting iframe on tabs,
From the facebook documentation
Blockquote
When a user navigates to the Facebook Page, they will see your Page Tab added in the next available tab position. Broadly, a Page Tab is loaded in exactly the same way as a Canvas Page. When a user selects your Page Tab, you will received the signed_request parameter with one additional parameter, page. This parameter contains a JSON object with an id (the page id of the current page), admin (if the user is a admin of the page), and liked (if the user has liked the page). As with a Canvas Page, you will not receive all the user information accessible to your app in the signed_request until the user authorizes your app.
Blockquote
This is the URL:
http://developers.facebook.com/docs/guides/canvas/#tabs