<div id="fb-root"></div>
<html> ... <body> <div id="fb-root" wicket:id="..."></div> ... </body> </html>
20212223242526272829
/** * */ public SendButtonPage() { add(new FacebookSdk("fb-root")); // fb doesn't like localhost add(new SendButton("sendButton", Model.of("http://wicketstuff.org"))); }
/** * */ public LikeBoxPage() { add(new FacebookSdk("fb-root")); add(new LikeBox("likebox", Model.of("https://www.facebook.com/apps/application.php?id=142662635778399"))); }
2021222324252627282930
/** * */ public CommentPage() { add(new FacebookSdk("fb-root")); add(new Comments( "comments", Model.of("http://localhost:8080/wicket/bookmarkable/org.wicketstuff.facebook.plugins.CommentPage"))); }
202122232425262728
/** * */ public FacepilePage() { add(new FacebookSdk("fb-root")); add(new Facepile("facepile", Model.of("http://localhost/"))); }
1819202122232425262728
/** * */ public AjaxLikeBoxPage() { add(new FacebookSdk("fb-root")); final Model<String> urlModel = new Model<String>(); final Form<Void> form = new Form<Void>("form"); final TextField<String> textField = new TextField<String>("urlInput", urlModel);
121314151617181920
*/ private static final long serialVersionUID = 1L; public ActivityFeedPage() { add(new FacebookSdk("fb-root")); add(new ActivityFeed("feed", Model.of("localhost"))); }
/** * */ public LoginButtonPage() { add(new FacebookSdk("fb-root", "142662635778399")); add(new LoginButton("loginButton", FacebookPermission.user_events)); }
161718192021222324
*/ private static final long serialVersionUID = 1L; public LiveStreamPage() { add(new FacebookSdk("fb-root", "142662635778399")); add(new LiveStream("stream", "142662635778399")); }
2324252627282930313233
/** * */ public LikeButtonPage() { add(new FacebookSdk("fb-root")); // URL is needed because Facebook doesn't like localhost final IModel<String> url = Model.of("http://wicketstuff.org"); final LikeButton likeButton = new LikeButton("likeButton", url);
/** * */ public CommentEventPage() { add(new FacebookSdk("fb-root")); add(new Comments( "comments", Model.of("http://localhost:8080/wicket/bookmarkable/org.wicketstuff.facebook.plugins.CommentPage"))); final Model<String> responseModel = new Model<String>();