CodeIgniter Forums
Facebook connect wall post code error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Facebook connect wall post code error (/showthread.php?tid=29544)



Facebook connect wall post code error - El Forum - 04-13-2010

[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.com/2010/02/how-to-use-fbconnectstreampublish.html this is the refered link...when php code inside of this javascripts its not working fine........


Facebook connect wall post code error - El Forum - 04-13-2010

[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?


Facebook connect wall post code error - El Forum - 04-28-2010

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