2016-06-25 52 views
0

我試圖獲取應用程序屬性(應用程序名稱)使用下面的代碼來顯示從我的應用程序的所有帖子給Facebook:什麼特別允許應用程序歸屬顯示在iOS應用程序的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頁面不會與帖子一起顯示。有誰知道如何啓用這種行爲?

回答

相關問題