Facebook Implementation within app (without opening in safari or native app)

谁说胖子不能爱 提交于 2020-01-03 17:46:31

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/6280963/facebook-implementation-within-app-without-opening-in-safari-or-native-app

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