Facebook在应用程序内部实施(不用在safari或本机应用程序中打开) [英] Facebook Implementation within app (without opening in safari or native app)
问题描述
我已经通过了从
下载的iPhone的FBCOnnect示例代码 http:/ /developers.facebook.com/docs/guides/mobile/
但是它会在safari或设备上打开Facebook页面,原生应用程序被打开并且应用程序在后台被切换我不希望发生这种情况。另外,方法回调如
' - (void)fbDidLogin'在登录后根本不被调用。
I have gone through the FBCOnnect sample code for iPhone downloaded from http://developers.facebook.com/docs/guides/mobile/ But it opens the facebook page in safari or on device the native app is opened and the app is switched in Background I dont want this to happen.Also the method callbacks like '- (void)fbDidLogin' is not called at all after login.
推荐答案
在Facebook iOS SDK中,您可以编辑Facebook.m的授权方法,并设置safariAuth并授权WithFBAppAuth,以免使Facebook连接样式弹出登录。
In the Facebook iOS SDK, you can edit Facebook.m's authorize method and set safariAuth and authorizeWithFBAppAuth both to no so that it does the Facebook connect style popup login.
这篇关于Facebook在应用程序内部实施(不用在safari或本机应用程序中打开)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!