facebook auto feed does not share image? -


i auto sharing feeds on wall in app, working absolutely fine, when attach image , link it, know image not appear on localhost, atleast there comes success message, gives me error mentioned in response, idea?

$(document).ready(function(){                  var image_name = '<?=$trx_detail->image_name?>'                  var wallpost = {                     access_token: '<?php echo $this->facebook->getaccesstoken()?>',                     message: 'test message',                     link: <? echo "'".canvas_url."'";?>,                     picture: '<?=base_url()?>path/'+image_name,                     description: 'test description!'                 };                  fb.api('/me/feed', 'post', wallpost, function(response) {                     if (!response || response.error) {                         alert('error occurred');                     } else {                         alert('success!');                     }                 });             }); 

i had found out problem, sorry late answer posting, there issue the,

 link: <? echo "'".canvas_url."'";?> 

if trying post images on localhost, image wil not displayed then, image displayed on online https server.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -

jquery - How can I dynamically add a browser tab? -