简体   繁体   English

iOS版Facebook SDK的权限

[英]Permissions for Facebook SDK for iOS

I'm trying to integrate my app with Facebook just for posting a message on the user's wall. 我试图将我的应用程序与Facebook集成在一起,只是为了在用户墙上发布消息。

So I've downloaded the latest Facebook SDK, then changed one line to force using Facebook Login Dialog instead of safari: 因此,我下载了最新的Facebook SDK,然后更改了一行代码,以使用Facebook登录对话框(而非Safari)强制执行:

[self authorizeWithFBAppAuth:YES safariAuth:NO];

Now authorization works fine, but after entering credentials it asks for permission to "Access my basic information" and "Post to my Wall" (I've added publish_stream). 现在,授权工作正常,但是在输入凭据后,它要求获得“访问我的基本信息”和“发布到我的墙”的许可(我已经添加了publish_stream)。

I'm worried that users might get scared by the fact that my app is trying to get their info including list of friends, etc. 我担心用户可能会因为我的应用程序试图获取其信息(包括朋友列表等)而感到害怕。

So my question is: Is it possible to have only "Post to my Wall" in the permission request without "Access my basic information"? 所以我的问题是:是否可能在权限请求中仅包含“发布到我的墙”而没有“访问我的基本信息”?

I think I get what you're asking. 我想我明白您的要求。 Can you remove the "Access my basic information" from the step, right? 您可以从步骤中删除“访问我的基本信息”吗?

You can't do this because by default that is what any app gets access to. 您无法执行此操作,因为默认情况下,这是任何应用程序都可以访问的内容。 It's only the basic information (ie, name, profile information, friends list, etc.). 这只是基本信息(例如,姓名,个人资料信息,朋友列表等)。 This is similar to the information friends get when a person approves their friend request. 这类似于当一个人批准他们的朋友请求时朋友获得的信息。

Are you thinking that it's equivalent to accessing all of of their information? 您是否认为这等同于访问他们的所有信息? The reason I ask is because the request doesn't seem to be a major request. 我问的原因是因为请求似乎不是主要请求。

Btw, to post to their wall you would need some of their basic information, specifically their facebook user ID. 顺便说一句,要发布到他们的墙上,您需要他们的一些基本信息,特别是他们的facebook用户ID。

So far, I haven't seen an app that doesn't do that. 到目前为止,我还没有看到没有这样做的应用程序。 The problem is that Facebook doesn't trust you. 问题在于Facebook不信任您。 And they're right. 他们是对的。

Maybe you should stick to the Safari solution? 也许您应该坚持使用Safari解决方案? You can get a link, which you load up in a web view with your customizations specified in the URL (as specified by Facebook). 您可以获得一个链接,您可以使用URL中指定的自定义(由Facebook指定)在网络视图中加载该链接。

There is no way you can skip this step. 您无法跳过此步骤。 For security reasons, facebook puts this dialog. 出于安全原因,facebook放置了此对话框。 If this step was not there then we could you developed an app to post spam message on users wall :-) 如果没有此步骤,那么我们可以开发一个应用程序以在用户墙上发布垃圾邮件:-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM