In iOS 6, check if a person is logged in to a social network?

邮差的信 提交于 2019-12-05 17:35:23

What you have works for me on device:

if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {// do something only for logged in fb users} else {//do something else for non-fb users}

Are you trying on device or simulator?

Unfortunatly you can't check if the user is correctly logged. The facebook password can be incorrect and the method (isAvailableForServiceType) returns true

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!