Facebook link does not display caption or description

I have an application that shares facebook links. This link contains a description and signature. The problem is that the title and description are not displayed on facebook, sometimes a completely different signature is displayed, which, in my opinion, is a description of the site (link).

using facebookSDK, here is how I share:

if ([FBDialogs canPresentShareDialogWithParams:params]) 
{
[FBDialogs presentShareDialogWithLink:params.link
    name:params.name
        caption:params.caption
        description:params.description
        picture:params.picture
        clientState:nil
        handler:^(FBAppCall *call, NSDictionary *results, NSError *error) 
        {
            if(error) 
            {
                 NSLog([NSString stringWithFormat:@"Error publishing story: %@", error.description]);
            } else {
                // Success
                NSLog(@"result %@", results);
            }
}];

}

I have another application that uses the same exact code and the title shows just fine. I do not get help lol please

+4
source share

Source: https://habr.com/ru/post/1540686/


All Articles