Facebook登录让我已经授权我的应用程序,而无需自动返回应用程序 [英] Facebook Login give me already authorized my app without automatic returning to the app

查看:735
本文介绍了Facebook登录让我已经授权我的应用程序,而无需自动返回应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序应该使用facebook实现登录,但我注意到每次我想登录时,都会出现一个屏幕您已经授权此应用程序,按OK继续,问题是我是否已经授权应用程序如果我在其他应用程序中看到,facebook应该自动返回而不显示此屏幕?
但是当我在Facebook.m中的这一行设置BOOL = NO [self authorizeWithFBAppAuth:BOOL safariAuth:BOOL];它的工作完美,即弹出屏幕你已经授权这个应用程序没有出现,但我需要将此功能与BOOL设置为YES。

My app should implement login with facebook but I have noticed that every time I want to login ,a screen appears "You have already authorized this app,Press OK to continue" , the question is if I have already authorized the app the facebook should return automatically without this screen appearing as I saw in other applications ? but when i set BOOL=NO in this line in Facebook.m [self authorizeWithFBAppAuth:BOOL safariAuth:BOOL]; its work perfectly, i.e. the popup screen "YOU HAVE ALREADY AUTHORIZED THIS APP" doesn't appear,but i need this functionality with BOOL set to YES.

请帮助我。

推荐答案

每次点击登录时都不想调用授权功能。检查会话是否在那里继续登录条件

You Don't want to call authorize function each time when you click on login.Check whether the session is there and continue with logged in condition

if (![[delegate facebook] isSessionValid]) {

    [[delegate facebook] authorize:permissions];
} else {

    NSLog(@"seesion found");
[self apiFQLIMe];
}

这篇关于Facebook登录让我已经授权我的应用程序,而无需自动返回应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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