Reputation: 63
I'm trying to post an item to a user's news feed with an image on my own site. I get the "FBCDN image is not allowed in stream" error which normally occurs when someone tries to include an image that is on Facebook's server, however the image I'm including is on my own server.
var imgSrc = $('.final-badge .badge-background img').attr('src'),
badgeUrl = $('#largeCrestView').val();
var obj = {
method: 'feed',
//Will need to be retrieved from a hidden text field in ASP environment
link: badgeUrl,
picture: imgSrc,
name: 'All hail my Coat of Charms',
caption: captionText,
description: ''
};
This is my code. The imgSrc variable contains a direct link to an image stored locally on my server. The URL is an absolute path as well.
An ideas what I'm doing wrong here?
Upvotes: 2
Views: 1085
Reputation: 63
I actually worked it out. It was that the location of the image, as I've been informed, was not publicly accessible. Now that It's external it works fine.
Upvotes: 1