Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

facebook login give me already authorized this app without automatic returning to the app

My app should implement login with facebook but I have noticed that every time I want to login the facebook tell me you are already authorize this app , the question if I already authorized the app the facebook should return automatically without pressing the okey button as I saw in other applications ?

see the attached image enter image description here

like image 525
Omar Freewan Avatar asked Jun 04 '12 21:06

Omar Freewan


People also ask

How do I remove an authorized app from Facebook?

Scroll down, tap Settings, then tap Apps and Websites. Tap Logged in with Facebook. Tap the app or game that you want to remove. Below the name of the app or game, tap Remove.

How do I remove automatic login on Facebook?

Updated mobile browser experienceScroll down and tap Settings. Below Security, tap Security and Login. Tap Save your login info. Tap to check the device or browser you want to remove, then tap Remove Selected.

How do I grant an app permission on Facebook?

Adjust PermissionsClick “Edit Settings” next to Apps You Use on the Apps, Games and Websites page settings page. Click the app for which you want to adjust the settings. All of the permissions granted to the app will be displayed. Click “Remove” to delete any of the permissions.


2 Answers

I fixed my problem by doing the following steps :
1- login to your facebook as admin to your app.
2- go to https://developers.facebook.com/apps/YOUR_FACEBOOK_APP_ID/summary.
3- go to settings > basic > Native IOS app
4- set the Configured for iOS SSO: to enabled

like image 187
Omar Freewan Avatar answered Oct 14 '22 09:10

Omar Freewan


In iOS/Android the FBAccessToken's expiration time is up to 60 days. When you do FBLogin in your app you get the access token. once you get the token you should not do login again(otherwise you will be prompted already authorized this app since your app has already been given an access token earlier which is not expired ). You should reuse the unexpired access token.

Like this :

if FBSDKAccessToken.currentAccessToken() != nil {
  print(FBSDKAccessToken.currentAccessToken().userID)
  print(currentAccessToken().tokenString)
//OR call the *FBGraphRequest*
 }

Note: for in-App browser login (SVC: Safari View Controller)

see more: https://developers.facebook.com/blog/post/2015/10/29/Facebook-Login-iOS9/ and https://developers.facebook.com/docs/reference/ios/4.9/class/FBSDKLoginManager/

like image 31
PANKAJ VERMA Avatar answered Oct 14 '22 10:10

PANKAJ VERMA