Facebook in iPhone app

后端 未结 1 1148
萌比男神i
萌比男神i 2021-01-29 07:49

I am working on an iPhone app,in this i have an option for sharing my posts with face book(i am just passing the user id of facebook user and my server side developer do the pos

1条回答
  •  有刺的猬
    2021-01-29 08:14

    Since you're using the 3.1 version of Facebook SDK, openActiveSessionWithPermissions:allowLoginUI:completionHandler: is not supposed to be used and the old way of doing it does not seem to be functional anymore; from the 3.1 migration documentation;

    ...you will need to remove usage of openActiveSessionWithPermissions:allowLoginUI:completionHandler: and replace it with openActiveSessionWithReadPermissions:allowLoginUI:completionHandler: (or even more simply, openActiveSessionWithAllowLoginUI).

    Later, when your app needs to publish back to Facebook, you should use reauthorizeWithPublishPermissions:defaultAudience:completionHandler: to seek the additional permissions.

    Even more details available at the migration docs.

    0 讨论(0)
提交回复
热议问题