How to post Image with status in Facebook in Iphone sdk?

前端 未结 2 1947
走了就别回头了
走了就别回头了 2020-12-11 14:26

HI Guys,

Here I am having problem that How can I post an image including status in facebook can anyone suggest this.

The code I used for posting the status w

相关标签:
2条回答
  • 2020-12-11 14:46

    You must post the image to your photos (using the method you are doing now, without the args) and then post a wall post that links to the photo.

    0 讨论(0)
  • 2020-12-11 14:48

    I would also suggest you give BMSocialShare a try, a simple lib I wrote.

    BMFacebookPost *post = [[BMFacebookPost alloc] 
                            initWithTitle:@"Simple sharing via Facebook, Email and Twitter for iOS!" 
                            descriptionText:@"Posting to Facebook, Twitter and Email made dead simple on iOS. Simply include BMSocialShare as a framework and you are ready to go." 
                            andHref:@"https://github.com/blockhaus/BMSocialShare"];    
    
    [post setImageUrl:@"http://www.blockhausmedien.at/images/logo-new.gif" 
             withHref:@"http://www.blockhaus-media.com"];
    
    [[BMSocialShare sharedInstance] facebookPublish:post];
    
    0 讨论(0)
提交回复
热议问题