我尝试使用以下代码从我的应用中显示所有发布到Facebook的帖子上的应用归因(应用名称):
-(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];
}
}
代码正确发布到Facebook,但链接到App Store页面的应用归属不会随帖子一起显示。有谁知道如何启用此行为?
答案 0 :(得分:0)
这是我的2美分:
一个。你根据Facebook iOS指南设置了info.plist:{{3}}
湾您的Facebook应用需要通过Facebook进行审核