Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我添加了 Facebook API 来共享我的应用程序信息。我已经测试了登录,但是当我点击应用程序中的登录按钮时,Safari 会打开登录页面。我会在我的应用程序中处理这个登录(例如在我的网络视图中)。我怎样才能做到这一点?
如果您希望它在应用程序中打开登录,请前往该Facebook.m文件并查找方法-(void)authorize:(NSArray *)permissions
Facebook.m
-(void)authorize:(NSArray *)permissions
并更改线路
[self authorizeWithFBAppAuth:YES safariAuth:YES];
到
[self authorizeWithFBAppAuth:NO safariAuth:NO];