Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook "FBCDN image is not allowed in stream"?

after uploading an image, i want to post it on the users wall. Unfortunately, i get the following error within a Facebook UI:

"FBCDN image is not allowed in stream.filepath"

It seems that the value @"picture" won´t be accepted, but why? When i NSLog the "thumbURL", its correct. How can i fix that? Here´s my complete method:

    NSString *thumbURL = kDefaultThumbURL;
    NSString *imageLink = [NSString stringWithFormat:[result objectForKey:@"link"]];    

    NSMutableDictionary* dialogParams = [NSMutableDictionary dictionaryWithObjectsAndKeys:
                             kAppId, @"app_id",
                             imageLink, @"link",
                             thumbURL, @"picture",
                             @"imageName", @"name",
                             nil];

    [appDelegate.facebook dialog:@"feed" 
                       andParams:dialogParams 
                     andDelegate:self];

Thanks for any help..

like image 695
geforce Avatar asked Jul 18 '12 17:07

geforce


Video Answer


2 Answers

You need to store the image some where locally ,in a local server . due to this article

like image 106
M.Othman Avatar answered Sep 19 '22 07:09

M.Othman


I got around this same issue by writing a page that just forwards the image data and then linking to that instead.

like image 40
ricick Avatar answered Sep 21 '22 07:09

ricick