How do I proceed with creating a panel which can search a page in wicket and redirect to the same - wicket

I am trying to do the following:
I already have a menu with several drop downs in wicket right now. However the number of entries have become very large in the drop downs, one has to remember headers under which a particular page exists. I would like to create a landing page, which would have a search bar in which we can type in the page name and I should be redirected to the desired page.
Can anybody give me any pointers of how to proceed with this one? Thanks!

You can consider to use AutoCompleteTextField to show user the available pages. Then, after user has selected a page, you can redirect him/her to the page.

Related

Refresh amp-list content on button click

I have a page that generates random numbers for a user. On page load, it will generate data and I can handle this much with amp-list. What I want is to have a button where the user can generate new data. Think of it like a bingo number generator. Page loads and presents the user with a 6. They want a new number, how can this be done?
I was thinking I could force the page to reload by linking to itself. So the "new number" button would actually just be a url link to the exact same page and this will generate a new number on page load. Using a div with an ID i can provide #randomnumber in the URL and it will go straight to this position.
Im a bit worried about this though as Google might see this as me attempting to inflate viewing numbers to get more ad revenue and what not. Is there a better way to go about this?
You can use changeToLayoutContainer to refresh data in amp-list. Give it an ID and reference that in your on
Example:
<button on="list.changeToLayoutContainer()">Show Grid</button>

Linking your app to an EXISTING page

I've searched and searched and can't seem to find any info in regards to this...
We have a facebook page (facebook.com/companyname). We also have an app on facebook (apps.facebook.com/companyname). I can create a NEW community page from the app, but i cant link it to the existing page. How come? Is there any way to do so?
There's plenty of similiar questions and no one has had an answer yet.
Thanks for the help!
You should go to edit your page and change the category to Brands & Products and sub-category to App Page.
Then go to app details and select this page as app page.
#Muhammad Javeed - Thanks to you, I finally figured this out!
For those who need a little help, this was what I did.
Goto your existing Facebook Page
Click on 'Edit Page' button and select 'Edit Settings' from drop down menu.
Click on 'Page Info' on the settings page.
Click on 'Category' to expand selections.
Select 'Brands & Products' in 1st drop down and 'App Page' in the 2nd drop down.
Click 'Save Changes' and that's it.
Go back to your App Developer Page > App Details > Contact Info > App Page > Link to your Page.
Unless Facebook changes the menu/settings page dramatically, I can confirm this works!
I have done significant research into this. There is no way to do this (though it's such a common use case where someone already has an active fan page and launching an app later)
Earlier every app used to have a profile page (which was not like fan page) and facebook at the start of the year gave ever app admin to move their likes to another fan page. This option has been removed.
There is another way that I have discovered.
Create fan page for the app (from app details section) by clicking "Create Fan Page"
Goto pages and select this newly created fan page and rename it to be the same as the other active fan page(with which you initially wanted to link to). This is needed because merge option appear when 2 pages have same name and same category.
Goto your active (original) fan page, click edit page, goto resource and click on merge pages and do the marge.
However as someone has already reported, there is a bug in the system, on merging it removes the app link (something that will be fixed soon). Here is the link to the bug.
http://developers.facebook.com/bugs/413029272079414?browse=search_5033475a2a50c9f73780526
I tried the other answers but didn't worked for me.
What worked for my case is that I needed to make the name of the fb page & app's name match EXACTLY. And after making them the same I now see a dropdown and then selected the right fb page.
If you've linked them correctly you should see a new button called "Play Now" on your page, if its a game app.
Check it on this page
https://www.facebook.com/pages/4-Pics-1-Word-Tagalog/499833986805671
I fixed this issue by:
Choose only one App Page for the page Category
Go to https://developers.facebook.com/ Setting > Advanced, scroll down to the App, now you can see the button to choose the existing page
Create a second Page on App Advance Settings.
Now go to the other first Page Settings you have and Merge.
I have been struggling with this same issue. It appears that the name do not need to match entirely but at least the app name needs to start with (part of) the page name. I found this since the page name was longer than the allowed max name length of the app.
Paul
as on Nov 17th, 2017.
App page itself is a category, selecting this category would be the only option.
Also, Fb App name and Fb Page name must be the same for integrating existing page.
Are you talking about adding a tab for your app (apps.facebook.com/companyname) to your existing page (facebook.com/companyname)?
If so, then go to your page (facebook.com/companyname) and in the URL type in
"https://www.facebook.com/dialog/pagetab?app_id=[YOUR_APP_ID]&next=[YOUR_APP_CANVAS_URL]"
That should automatically direct to a form asking you which 'page' you would like to add a tab to. Select the page from the drop down list and click ok. That should redirect you to your app canvas url. Navigate back to your company page and see if the tab appears at the bottom of the list on the left hand side.
Cheers.

restoring view's counter

I have an additional page called "precious feet" and when I first set it up I could view the amount of visits it got, however now it won't show this information, it also gives me the option to "like" which it never did before and I assume that is because it is my page and of course I will like it. Can anybody help me restore the functions. I have tried logging out and back in again but to no avail.
It sounds like you aren't the page admin anymore or you have a group not a page. Try clicking on the down arrow on the top right and under "Use Facebook as:" select your page. If it isn't there then it's likely you are no longer a page admin.

Facebook: Custom Landing Page "For Fans"

Facebook provides us with an option to choose a custom landing tab for the new visitors (i.e. non-fans). Can we have a custom Landing tab for fans so that every time i open the page, i m directed to that custom page rather than the Wall..
Have you checked Facebook Help Center?
How can I select a tab as default for people who already Like my Page?
This functionality does not exist.
What you are trying to do is straightforwrd.
Create a "landing page" tab app and add it to your page. Here is a tutorial on how to do it: http://how-to-create-facebook-app.koliber.com
Make this tab the default for your app. On your page, in the upper-right corner click "Edit Page" and change the "Default Landing Tab" to the one you would like displayed by default.
Now everyone will be shown the default tab when they log in. How to distinguish between those visitors who "liked" your page and those that didn't? Easy. Make two versions of the page and display one to those who liked and one to those who didn't like. How to find out whether the current visitor liked your page or not follows:
When your Page Tab URL is called in the iframe, it is passed a signed_request POST parameter. This parameter contains the info you need. However, it is encoded and structured so it needs some processing to get the info
Split the signed_request on the '.' character. The first part is the signature. The second part is the encoded_data
Decode the encoded_data into a JSON string using the URLBase64Decode function equivalent in your server-side programming language
The JSON object contains a node called "page". This contains a node called "liked".
If "liked" is true, the user liked the page and you display the "liked" version of your app. If false, show the "Please like me" version of the site.
This way, when visitors visit your page, they see your custom app in a tab. The actual content is determined server-side on your server based on the page.liked property inside of the JSON object passed to you in signed_request
The simple answer as far as I have been able to find out is "No". There is no setting which aligns with this requirement.
The wall is the default tab for people who like the page.
http://apps.facebook.com/static_html_plus/ this application gives you those options... enjoy!

Facebook page: How to add a customized box at the bottom left side of wall tab?

Dear all, I have a question about Facebook Page: (NOT user profile page, I mean a facebook page where you can become a fan)
How to add a customized box at the bottom left side of wall tab?
(I am the page creator/admin)
Please don't just give an answer "add the box to the page". Cause I really don't know how.
Also, it seems that putting $facebook->api_client->profile_setFBML and $facebook->api_client->profile_setInfo for the application won't provide a way for the page to add the box.
Below is an example image that is done by the other. I have circled the box at the image. I would like to know how to do the same to the page that I owned. Many thanks for reading.
alt text http://design.outblaze.com/calvin/facebook/facebookPageBoxQ.jpg
$facebook->api_client->profile_setFBML
is absolutely correct afair. Go to the App Page and Add the App to your Fan Page. It will most properbly appear in the Boxes Tab.
// get the fbml for the box
$main_box = $this->render();
// the first main_box is actually deprecated feel free not to use it
$this->facebook->api_client->profile_setFBML($main_box, PAGE_ID, $main_box, NULL, $main_box, $main_box);
// for easier workflow forward the user directly to the page
$this->facebook->redirect(PAGE_URL);
But as said by others in this thread in 90% of the cases the Static FBML App by Facebook does the job.
Unreality's answer helped me best but one clarification is needed. These boxes can be added only to "Pages" that you have admin rights to. You cannot add one of these boxes to your profile page from what I can see. (Anybody? Prove me wrong, please!)
You write an application that has a box. You add the box to the page, then move the box to the page's wall.
For example, I moved the Notes box on my app's page to my wall so you could see it:
http://www.facebook.com/apps/application.php?id=96193636102
Update, with more info:
In general, the way you do this is you add a function to your app that creates a block of fbml and passes it to setFBML(), using your page's ID instead of a user ID as the destination.
I'm planning to do this myself to add some summary statistics to my app's profile page, but that has to wait til after working hours.
I have found the answer. It's using the static fbml made from facebook
http://www.facebook.com/apps/application.php?id=4949752878&ref=s
Go there, click "add to my page", and pick your page.
Then goto your own page, and click "Edit page", then you will find FBML under the applications.
Click the pencil at the FBML box top right, select edit.
Then at the edit page, just write something up and save the changes
Next go back to your own page. Goto the "Boxes" tab, you will find the FBML box that you have just made.
Click the pencil button at the FBML box, select "Move to Wall Tab", and then done! Happy FaceBooking!
As far as I understand the profile boxes will be removed soon.