Facebook connect wall post code error

#1
[eluser]aruntvla[/eluser]
Facebook connect wall post code error

it showing

Break on Error
Permission denied for <http://www.facebook.com> (document.domain=<http://facebook.com>) to get property........

Code:
[removed]
function publish() {

      var attachment = {
     'name':'FriendMatch',
     'href': &lt;?php echo  '\''.base_url() . '\'';?&gt;,
     'caption':'{*actor*} is playing FriendMatch!',
     'media':[{
       'type':'image',
       'src':&lt;?php echo  '\''.base_url() . '\'';?&gt;+'uploads/'+&lt;?php echo '\''.$couponname [0]->photo.'\'';?&gt;,
       //'href':'http://apps.facebook.com/frmatch/'
       'href': &lt;?php echo  '\''.base_url() . '\'';?&gt;
     }]};
    
   var action_links = [{'text':'Match Friends','href':'http://apps.facebook.com/frmatch'}];

   FB_RequireFeatures(["Connect"], function() {
  
     FB.init('*************', 'xd_receiver.htm');
    
     FB.ensureInit(function() {
    
         FB.Connect.streamPublish('', attachment, action_links);
      
     });
    
   });
  
}

[removed]


At start it works fine but now it not working..[ not popup window ]....is thre any idea please help??????Attaching a copy of my application settings........

http://thetechnicalexperience.blogspot.c...blish.html this is the refered link...when php code inside of this javascripts its not working fine........

#2
[eluser]pickupman[/eluser]
Is this just a typo with the extra space?
Code:
$couponname [0]->photo

Should be
Code:
$couponname[0]->photo

If you view source of the page when it is rendered, is the script block have the correct values that are being generated by php?

#3
[eluser]aruntvla[/eluser]
problem solved,thre is a baseurl problem when iam not given &lt;?php echo base_url(); ?&gt; for an <a >.......thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.