开发者

Problem running Facebook iphone DemoApp

开发者 https://www.devze.com 2023-01-31 20:56 出处:网络
When I press on the Login button, i transfer to Safari, why? I entered 开发者_运维问答the app id as they asked.

When I press on the Login button, i transfer to Safari, why? I entered 开发者_运维问答the app id as they asked. Whats wrong?

Tnx


The latest version of the Facebook iOS SDK uses a technique called Single Sign On (short: SSO). If your users don't have the Facebook App installed the framework will use Safari as a fallback method to authorize your application.


@henrik is right, if you want to change this behavior, in Facebook.m, at about line 214, change line to

  [self authorizeWithFBAppAuth:YES safariAuth:NO];

if you do not want Facebook App auth, change as well :

  [self authorizeWithFBAppAuth:NO safariAuth:NO];

it will open the good old popup

0

精彩评论

暂无评论...
验证码 换一张
取 消