Facebook iOS SDK:刷新过期的访问令牌而不显示对话框(Facebook iOS SDK: refreshing an expired access token without presenting a dialog)
我正在使用Facebook iOS SDK 。 在我的代码中,我已经授权我的应用程序具有默认权限,所以我的会话有效,直到到期日为止。 但是,在达到有效期后,我会尝试重新授权以“刷新我的OAuth令牌”, 如前所述 。
但是,当我尝试重新授权时,它会显示一个对话框,说明我已经授权我的应用程序,即使我希望它仅更新我的OAuth令牌而无需进行对话。 根据Facebook, 这是可能的 :
将用户重定向到身份验证对话框时,如果用户已经授权了您的应用程序,则不会提示用户输入权限。 Facebook将向您返回一个有效的访问令牌,无需任何用户对话 。
但是,我确实得到了一个对话框,我想知道如何刷新访问令牌而无需获取对话框。
I'm using the Facebook iOS SDK. In my code I have authorized my app with the default permissions, so my session is valid until the expiration date is reached. However, after the expiration date is reached, I attempt to reauthorize in order to "refresh my OAuth token", as asked before.
However, when I attempt to reauthorize, it displays a dialog saying I have already authorized my app, even though I expect it to just update my OAuth token without a dialog. According to facebook, this is possible:
When you redirect the user to the auth dialog, the user is not prompted for permissions if the user has already authorized your application. Facebook will return you a valid access token without any user facing dialog.
However, I do get a dialog and I'd like to know how I can refresh the access token without getting the dialog.
原文:https://stackoverflow.com/questions/8373383
最满意答案
不,你提交给iTunesConnect的只是“神器”。 原始代码文件或项目文件都没有。 您可以从上传的ipa中获取艺术资产(如图像或声音)。 但就建设项目而言,你必须重新开始。
如评论中所述,这就是您使用版本控制和备份的原因。
No. What you submit to iTunesConnect is just the "artifact". None of the original code files or project files go up. You can get art assets (like images or sounds) out of the uploaded ipa. But as far as building the project, you'll have to start over.
As stated in comments, this is why you use version control and backups.
相关问答
更多-
您需要使用您尝试提交的同一帐户登录iTunes连接,Apple才能看到您尝试提交的应用程序记录。 You need to log in to iTunes connect with the same account that you are trying to submit under in order for Apple to see the Application Record you are trying to submit.
-
不,你提交给iTunesConnect的只是“神器”。 原始代码文件或项目文件都没有。 您可以从上传的ipa中获取艺术资产(如图像或声音)。 但就建设项目而言,你必须重新开始。 如评论中所述,这就是您使用版本控制和备份的原因。 No. What you submit to iTunesConnect is just the "artifact". None of the original code files or project files go up. You can get art assets (l ...
-
ios:iTunes Connect应用程序(ios: iTunes Connect Apps)[2023-01-28]
要访问配置文件,您还必须邀请您的开发人员加入iOS开发人员中心 。 这将使他能够访问其设备的配置应用程序。 To get access to the provisioning profiles, you will also have to invite your developer to the iOS Developer Center. This will give him access to provisioning apps for his device. -
这是一个“简短”指南,指导您做什么: 在Apple的会员中心 : 使用您的开发者帐户的AppleID登录 导航到证书,标识符和配置文件 选择证书 为iOS分发和iOS开发下载/创建iOS证书 导航到供应配置文件 为iOS分发和iOS开发下载/创建配置文件 在iTunes Connect中 : 使用您的开发者帐户的AppleID登录 导航到我的应用程序 在左上角按+ 填写它要求的所有数据 在Finder中: 导航到您之前下载的证书和配置文件 双击它们 必要时输入密码 如果它弹出,请关闭KeyChain 在Xc ...
-
您的分发配置文件将包含正在生产的应用程序的相同Bundle ID。 你可以用这个事实! Your distribution provisioning profile will contain the same Bundle Id of the app which is in production. You can use that fact!
-
在iTunes连接上传应用程序(Upload app on iTunes connect)[2022-02-05]
我想我明白你的问题。 您必须验证而不是提交。 要将您的应用程序上传到iTunes Connect,在管理器中,您必须“提交”您的存档。 这会将其上传到iTunes连接。 I think I understand you're problem. You must be validating instead of submitting. In order to upload your app to iTunes Connect, in organizer, you must "Submit" your arch ... -
在iTunes中创建新的iOS应用程序版本与Fastlane连接(Create new iOS app version in iTunes connect with Fastlane)[2023-02-04]
可以通过在上传ipa时使用deliver来完成。 deliver --ipa "$ipa" -z 6.2.4 -u test@example.com It can be done by using deliver when you upload the ipa. deliver --ipa "$ipa" -z 6.2.4 -u test@example.com -
原来,App Store默认呈现这样的图标。 它对面向客户的站点上的App Store呈现没有影响。 Turns out that the App Store renders icons like this by default. It has no impact on the App Store rendering on the customer facing site.
-
如何在帐户过期后从iTunes Connect删除iOS应用程序(How to delete an iOS app from iTunes Connect after the account has expired)[2023-02-19]
您的客户可能需要续订旧的开发者帐户才能进行任何更改。 So this is what happened in the end. After several back and forth calls with Apple to solve this issue (which included verifying the reason for such request and the validation of ownership of both the accounts by same person/comp ... -
是的,如果您选择所有地区,您的应用程序将可在全球范围内下载(或购买)。 如果您认为自己违反了法律(例如加密,数据收集等),则应取消其中任何一个国家/地区。 Yes, if you choose all territories, your app will be available for download (or purchase) worldwide. You should untick any of those countries if you believe you will violate thei ...