详情参见:http://sdkbox-doc.github.io/en/plugins/facebook/v3-js/#manual-integration
一步不落然后
*** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'
参考:http://stackoverflow.com/questions/32006033/ios-9-fbauth2-missing-from-info-plist
info.plist添加如下键值
<key>LSApplicationQueriesSchemes</key> <array> <string>fbauth2</string> </array>
初始化,并且登陆facebook 后才可以(登陆授权)
public_profile,然后 授权email,user_friends等等权限,至少弹了两次授权弹框,暂时没找到更好的办法
sdkbox.PluginFacebook.requestReadPermissions(["public_profile", "email","user_friends"]); sdkbox.PluginFacebook.requestPublishPermissions(["publish_actions"]);
否则会有 Error Domain=com.facebook.sdk.login Code=301