gpt4 book ai didi

IOS Facebook SDK 3.17 : Doesn't give me publish_stream permissions (while older versions as well as android both work -- so it is sdk specific)

转载 作者:行者123 更新时间:2023-11-29 02:42:10 25 4
gpt4 key购买 nike

IOS Facebook SDK (3.17) 没有给我 publish_stream 权限(虽然旧的 iOS 版本和 android 工作正常——所以它是特定于 sdk 的)

我做的很直接

1 我获得了读取权限[FBSession openActiveSessionWithReadPermissions:permissions allowLoginUI:YES completionHandler:^(FBSession *session, FBSessionState status, NSError *error) {

...

2 稍后我调用requestPublishPermissions

[[FBSession activeSession] requestNewPublishPermissions:@[@"publish_stream"] defaultAudience:FBSessionDefaultAudienceFriends completionHandler:nil];

3 我做了一个 NSLog => 没有 publish_X 权限(我可以获得 publish_actions 但仅此而已)

NSLog(@"%@", session);

最佳答案

FB 支持:

Publish_stream 和 Publish_actions 已简化为“publish_actions”。您可以在此处阅读 https://developers.facebook.com/docs/ios/graph。并在 https://developers.facebook.com/docs/facebook-login/permissions/v2.1

请注意,您必须通过提交应用进行审核来获得批准,然后才能对测试用户和应用管理员以外的用户使用这些权限。

已被授予 publish_streams 权限的应用程序将继续像以前一样工作。

关于IOS Facebook SDK 3.17 : Doesn't give me publish_stream permissions (while older versions as well as android both work -- so it is sdk specific),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25626829/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com