Facebook Application Error

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

Facebook Application Error

Post 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?
agriz
Forum Contributor
Posts: 106
Joined: Sun Nov 23, 2008 9:29 pm

Re: Facebook Application Error

Post 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.
Post Reply