Facebook在应用程序内部实施(不用在safari或本机应用程序中打开) [英] Facebook Implementation within app (without opening in safari or native app)

查看:143
本文介绍了Facebook在应用程序内部实施(不用在safari或本机应用程序中打开)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经通过了从
下载的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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆