【问题标题】:prime31. SocialNetwork iOs. Check system account is present素数31。社交网络 iO。检查系统帐户是否存在
【发布时间】:2016-04-04 06:01:41
【问题描述】:

我使用 Prime31 的社交网络插件 (here)
我想使用 SystemAccount 登录到 Fb(如果存在),但是当我在设备上没有登录时 - 我无法登录并获取异常代码 308。
我有其他登录逻辑,但只有在我没有系统帐户时才需要使用它。
我可以在首次登录前检查 Facebook 的系统帐户吗?

更新: 如果你能用c#写,请。

【问题讨论】:

  • 您在哪个平台上开发您的应用程序?

标签: ios facebook unity3d prime31 local-system-account


【解决方案1】:

要在 ios 中检测 Facebook 的系统帐户,您可以使用:

if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) 
{

//user is already logged in using iOS integrated FB a/c

}
else
{

//user is not logged in

}

根据您给定的 SocialNetworkPlugin Prime[31] 链接,您可以使用 ss:

// Checks to see if the user is using a version of iOS that supports the Facebook composer and if they have an account setup 

public static bool canUserUseFacebookComposer()

【讨论】:

  • 你能用c#写这个吗?
  • 不起作用。我已经删除了我的 Facebook 帐户,它仍然返回 true。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-10-15
  • 1970-01-01
  • 2020-05-08
  • 2013-12-18
  • 1970-01-01
相关资源
最近更新 更多