Page 1 of 1

Facebook Application Error

Posted: Mon Jul 12, 2010 2:41 pm
by agriz
I am trying to include facebook application (comment box)

It is working in normal html page.
But when i copy and paste that code in a smarty template, i am getting error.

FB.provide is not a function
FB.provide('Array',{indexOf:function(a...|c.hasOwnProperty(d))a(c[d],d,c);}});
all.js (line 10)
FB.init is not a function
FB.init({appId: 'MY_APP_KEY', status: true, cookie: true, xfbml: true});

Please let me know what is wrong in there?

Re: Facebook Application Error

Posted: Mon Jul 12, 2010 5:57 pm
by agriz
Never Mind.

I fixed it somehow. But new problem. Let me know if you can give me an idea for this.

smarty automatically compiles the <fb:comments> to <comments>
So i am using javascript to write on the document.

It is working in all the browser except IE's all the version.

Is there any way to use facebook API in Smarty.