Is it possible to create a Facebook tab application which a user can install to their page, which allows the passing of a customization value.
It is possible to create a link开发者_JAVA百科 which will load the application on the user's page, and pass an app_data value to your app:
http://developers.facebook.com/docs/appsonfacebook/pagetabs/
In addition, your application will also receive a string parameter called app_data as part of signed_request if an app_data parameter was set in the original query string in the URL your tab is loaded on. For the Shop Now link above, that could look like this: "http://www.facebook.com/YourPage?v=app_1234567890&app_data=any_string_here". You can use that to customize the content you render if you control the generation of the link.
But is it possible to distribute a personalized link (i.e. including an id=xyz query-string parameter) to an app which, when installed, adds an app tab to the users page,and will include this personalization value in the app_data (either in the GET or POST data), and thus enable the page to be personalized by parsing out the value (as illustrated here Facebook webforms app get app_data querystring)
In your application settings, you can set a "Page Tab Edit URL" :
The URL to the Edit link displayed on your application's profile box. An admin of a Facebook Page that has added your application can follow the URL to edit the application settings for the Page.
Source
When your app is added to a page, and a visitor is coming, you'll get a Signed Request (Posted to your app) containing the page ID, more infos here. You just have to store custom infos for each page ID you get.
精彩评论