Facebook SDK 3.1 presentShareDialogModally fails

前端 未结 3 700
北荒
北荒 2021-01-13 15:52

I\'m trying to test out the new built-in share \"sheet\" for Facebook on iOS 6 but when I run the sample code it doesn\'t show the sheet. Instead it posts a status for me wi

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 16:39

    Did you set up the Facebook account on the device/simulator (under Settings->Facebook)?

    The native sheet dialogs are only presented when the app is running on ios 6 AND the user is authenticated through the ios 6 Facebook account. Otherwise, the handler does report that error and the presentShareDialogModallyFrom returns "NO". Also, the FBNativeDialogResult result in the handler will equal FBNativeDialogResultError.

提交回复
热议问题