Reputation: 11
i am using facebook comment box on my site i have one infinite loading page(created with ajax and jquery) on that page The comment box is shown only on the posts on the first page when more posts loaded with infinite scroll comment box does not work.
i think it is because of javascript sdk.
is there any way adding comment box to site without using javascript sdk?? by using iframe or something???
Upvotes: 0
Views: 1036
Reputation:
The Social Plugin - Comment Box no longer supports iframe, so you must use either the HTML5 or FBML route, which both require the Facebooks Javascript SDK.
I think FB.XFBML.parse is what you're looking for.
This function parses and renders XFBML markup in a document on the fly. This could be used if you send XFBML from your server via ajax and want to render it client side. XFBML enables you to incorporate FBML into your websites and IFrame applications.
Upvotes: 1
Reputation: 10348
If it is a scroll problem try this:
window.fbAsyncInit = function() {
FB.Canvas.setAutoGrow();
}
// Do things that will sometimes call sizeChangeCallback()
function sizeChangeCallback() {
FB.Canvas.setSize({ width: 520, height: 1400 });
}
Upvotes: 0