<div id="fb-root"></div>
<html> ... <body> <div id="fb-root" wicket:id="..."></div> ... </body> </html>
1718192021222324252627
/** * */ public EdgeEventPage() { add(new FacebookSdk("fb-root")); add(new LikeButton("likeButton", Model.of("http://localhost/"))); final Model<String> responseModel = new Model<String>(); final Label responseLabel = new Label("response", responseModel); responseLabel.setOutputMarkupId(true);
1920212223242526272829
/** * */ public RenderEventPage() { add(new FacebookSdk("fb-root")); add(new Comments( "comments", Model.of("http://localhost:8080/wicket/bookmarkable/org.wicketstuff.facebook.plugins.CommentPage"))); add(new ActivityFeed("feed", Model.of("localhost")));
121314151617181920
*/ private static final long serialVersionUID = 1L; public RecommendationsPage() { add(new FacebookSdk("fb-root")); add(new Recommendations("recommendations", Model.of("localhost"))); }
1314151617181920212223
/** * */ public LoginEventPage() { add(new FacebookSdk("fb-root", "149850315074596")); add(new LoginButton("loginButton", FacebookPermission.user_about_me, FacebookPermission.friends_about_me)); final Model<String> responseModel = new Model<String>(); final MultiLineLabel responseLabel = new MultiLineLabel("response", responseModel);