How to post images on facebook wall on a single button click from an iPhone app

前端 未结 3 1192
鱼传尺愫
鱼传尺愫 2020-12-10 18:11

I am making an iPhone app where in the user wants that the selected image should be posted on facebook wall on a single button click.

I have Actionsheet button for t

3条回答
  •  旧巷少年郎
    2020-12-10 18:59

    I wanted to add on my personal experience on using BMSocialShare created by vinzenzweber here, and my reputation only allows me to answer. It saved me a lot of time and from the trouble of reading Facebook's documentation, for something as simple as sharing an image for my photo app.

    Just a couple of pointers on the documentation of it which might not be immediately obvious for someone using the library for the first time.

    1. When inserting the snippet into your Info.plist containing the Facebook app id, you need to affix 'fb' in front of the number app id.

    2. Besides adding the BMSocialShare.framework into the Xcode Project, you need to manually drag the BMSocialShare.bundle and the FBDialog.bundle in the resources folder of the BMSocialShare.framework, into the Copy Bundle Resources section under Build Phrases of your application's target

提交回复
热议问题