gpt4 book ai didi

ios - 是否可以使用 FBSDKShareKit 在 Facebook 上自动分享帖子?

转载 作者:行者123 更新时间:2023-11-28 11:10:56 24 4
gpt4 key购买 nike

我想在用户成功登录后在 Facebook 上分享帖子。我知道如何分享帖子:

let content: FBSDKShareLinkContent = FBSDKShareLinkContent()
content.contentURL = NSURL(string: "http://url.me")
content.contentTitle = "App Testing"
content.contentDescription = "I'm working over app!"

FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: nil)

但是这段代码要求用户点击发布按钮。是否可以自动发布状态更新我如何在 Twitter SDK 上执行此操作?它只是在时间轴上成功登录后发布一条推文,我正在寻找 FBSDK 中的模拟功能

最佳答案

不,没有执行此操作的功能。你的做法会违反他们的 Platform Policy ,其中包括以下规则:

Obtain consent from people before publishing content on their behalf.

这可能是相关的,具体取决于您的工作:

Don't prefill captions, comments, messages, or the user message parameter of posts with content a person didn’t create, even if the person can edit or remove the content before sharing.

关于ios - 是否可以使用 FBSDKShareKit 在 Facebook 上自动分享帖子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35134950/

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