I want make a wall post on friend wall using facebook graph api.
Everything works good but image is displaying.
Here is my code.
$attachment = array(
'message' => $d['giftmsg'],
'name' => 'You have received a gift voucher for ' . $dd['title'] . '!' . '',
'link' => $plink,
'description' => " Login to the Tippll facebook app to claim you gift card. Your friends can click on the like above to top up this gift even further!",
'picture' => $img_url,
'actions' => array('name' => 'Top-Up This Gift', 'link' => $plink)
);
$post = $facebook->api('/' . $_POST['friend_id'] . '/feed', 'POST', $attachment);
Here $img_url contains the valid url and it shows image when i enter this url to browser address bar. But facebook is not fetching it to my post.
I tried image from other servers and it works image hosted on other server but not in my server.
I m using htaccess to redirect www to non www.
Please suggest me the solution.
Thanx in advance,
There could be 2 possibly reasons: