素数31。社交网络 iOs。检查系统帐户是否存在

prime31. SocialNetwork iOs. Check system account is present

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

更新: 如果你会写c#请。

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

if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) 
{

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

}
else
{

//user is not logged in

}

根据您给定的 link 的 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()