خرید بک لینک

Vote count: 0

I'm trying to get the app attribution (app name) to display on all posts to Facebook from my app using the following code:

-(void)shareToFacebook
{
    if( [m_selectedPhotos count] > 0 )
    {
        NSMutableArray *photos = [NSMutableArray array];

        for( int i = 0; i < [m_selectedPhotos count]; i++ )
        {
            NSNumber *selected = [m_selectedPhotos objectAtIndex:i];
            if( selected.boolValue == YES )
            {
                UIImage *selectedImage = [m_scrollView imageViewAtIndex:i].image;
                FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
                photo.image = selectedImage;
                photo.userGenerated = YES;

                [photos addObject:photo];
            }
        }

        FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
        content.photos = photos;
        content.hashtag = [FBSDKHashtag hashtagWithString:@"#PosePro"];

        [FBSDKShareDialog showFromViewController:self
                                     withContent:content
                                        delegate:nil];
    }
}

The code posts correctly to Facebook, however the app attribution which links to the App Store page does not display along with the posts. Does anyone know how to enable this behavior?

asked 19 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 6 تير 1395 ساعت: 4:19

صفحه بندی