-
-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login Error with Facebook business login with additional permissions #409
Comments
i am facing the exact same issue pls provide us solution |
Sorry |
it not showing the error but when hitting the next api of facebook with the
access token given by the ios sdk it show error
…On Thu, 6 Jun 2024 at 14:50, DevineStar24 ***@***.***> wrote:
Sorry
I am also finding a solution
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELJVTLBDDNN7CCMX2NLZGASUVAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJRHAYDSNRUHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi. Do you receive the next message on the FB login page? |
How to switch from limited login to full access login ?
Have you fixed this the problem?
…On Sun, 9 Jun 2024 at 1:35 PM, AndRud ***@***.***> wrote:
Sorry I am also finding a solution
Hi. Do you receive the next message on the FB login page?
"If you are not using Limited Login, you will need to handle all Graph API
calls using Graph API, iOS. The access token will not be valid. To learn
more about changes to the Facebook SDK for iOS and how you can continue
using the Facebook Login SDK, visit the blog."
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Yes, I did.
…On Sun, Jun 9, 2024, 1:40 PM DevineStar24 ***@***.***> wrote:
How to switch from limited login to full access login ?
Have you fixed this the problem?
On Sun, 9 Jun 2024 at 1:35 PM, AndRud ***@***.***> wrote:
> Sorry I am also finding a solution
>
> Hi. Do you receive the next message on the FB login page?
> "If you are not using Limited Login, you will need to handle all Graph
API
> calls using Graph API, iOS. The access token will not be valid. To learn
> more about changes to the Facebook SDK for iOS and how you can continue
> using the Facebook Login SDK, visit the blog."
>
> —
> Reply to this email directly, view it on GitHub
> <
#409 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELPPBPXAUSL6IJVXYBDZGQEXBAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DANJWGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I made an ATT request before FB login and then made it enabled in FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce, permissions: [...]) and it worked. However, I still get a warning "If you are not using Limited Login,..." and do not understand what else should be done to get rid of it. |
We have to give permission that we are tracking them and it will shift from
limited.facebook.login login to Facebook.login
…On Sun, Jun 9, 2024, 1:51 PM AndRud ***@***.***> wrote:
How to switch from limited login to full access login ? Have you fixed
this the problem?
… <#m_-8071317692350319408_>
On Sun, 9 Jun 2024 at 1:35 PM, AndRud *@*.*> wrote: Sorry I am also
finding a solution Hi. Do you receive the next message on the FB login
page? "If you are not using Limited Login, you will need to handle all
Graph API calls using Graph API, iOS. The access token will not be valid.
To learn more about changes to the Facebook SDK for iOS and how you can
continue using the Facebook Login SDK, visit the blog." — Reply to this
email directly, view it on GitHub <#409 (comment)
<#409 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
. You are receiving this because you authored the thread.Message ID: @.*>
I made an ATT request before FB login and then made it enabled in
FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce,
permissions: [...]) and it worked. However, I still get a warning "If you
are not using Limited Login,..." and do not understand what else should be
done to get rid of it.
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Do you mean to put this permission in the login function? |
Yes, * made an ATT request before FB login and then I use a plugin named as
app_tracking_transparency and after allow it working and I am using graph
api *
…On Sun, Jun 9, 2024, 2:01 PM AndRud ***@***.***> wrote:
We have to give permission that we are tracking them and it will shift
from limited.facebook.login login to Facebook.login
… <#m_8718838956425111908_m_7257777306496331084_>
On Sun, Jun 9, 2024, 1:51 PM AndRud *@*.*> wrote: How to switch from
limited login to full access login ? Have you fixed this the problem? …
<#m_-8071317692350319408_> On Sun, 9 Jun 2024 at 1:35 PM, AndRud @.> wrote:
Sorry I am also finding a solution Hi. Do you receive the next message on
the FB login page? "If you are not using Limited Login, you will need to
handle all Graph API calls using Graph API, iOS. The access token will not
be valid. To learn more about changes to the Facebook SDK for iOS and how
you can continue using the Facebook Login SDK, visit the blog." — Reply to
this email directly, view it on GitHub <#409
<#409>
(comment) <#409 (comment)
<#409 (comment)>>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
. You are receiving this because you authored the thread.Message ID: @.> I
made an ATT request before FB login and then made it enabled in
FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce,
permissions: [...]) and it worked. However, I still get a warning "If you
are not using Limited Login,..." and do not understand what else should be
done to get rid of it. — Reply to this email directly, view it on GitHub
<#409 (comment)
<#409 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM
<https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM>
. You are receiving this because you commented.Message ID: @.***>
Do you mean to put this permission in the login function?
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELMHF5TDRNWIIMTOUTLZGQHFTAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4TANJRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I was talking about this warning (https://stackoverflow.com/questions/78472055/facebook-ios-sdk-v17-0-error-if-you-are-not-using-limited-login-you-will-need). But I've just made current FB user as non-tester (regular) and the warning disappeared. |
No I am using testing mode and the limited.facebook.login is changed from
facebook.login but this warning is still there I just checked that I thing
as you said when I changed from test to Normal might it will not show
…On Sun, Jun 9, 2024, 2:25 PM AndRud ***@***.***> wrote:
If you are not using Limited Login, you will need to handle all Graph API
calls using Graph API, iOS
I was talking about this warning (
https://stackoverflow.com/questions/78472055/facebook-ios-sdk-v17-0-error-if-you-are-not-using-limited-login-you-will-need).
But I've just made current FB user as non-tester (regular) and the warning
disappeared.
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELLQPNJWWIM5HXI25ITZGQKATAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4TQNJWG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
How do you do that ? |
made this changes in this file
1) AppDelegate.swift
import UIKit
import Flutter
import FBSDKCoreKit
import AppTrackingTransparency
import AdSupport
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
ApplicationDelegate.shared.application(application,
didFinishLaunchingWithOptions: launchOptions)
// Request tracking authorization
requestTrackingAuthorization()
return super.application(application,
didFinishLaunchingWithOptions: launchOptions)
}
func requestTrackingAuthorization() {
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
// Tracking authorization granted
debugPrint("Tracking authorized")
case .denied:
// Tracking authorization denied
debugPrint("Tracking denied")
case .notDetermined:
// Tracking authorization not determined
debugPrint("Tracking not determined")
case .restricted:
// Tracking authorization restricted
debugPrint("Tracking restricted")
@unknown default:
// Fallback for future cases
debugPrint("Unknown tracking status")
}
}
}
}
override func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
return ApplicationDelegate.shared.application(
app,
open: url,
sourceApplication:
options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
)
}
}
2) SceneDelegate.swift(if not make)
import UIKit
import FBSDKCoreKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, openURLContexts URLContexts:
Set<UIOpenURLContext>) {
guard let url = URLContexts.first?.url else {
return
}
ApplicationDelegate.shared.application(
UIApplication.shared,
open: url,
sourceApplication: nil,
annotation: [UIApplication.OpenURLOptionsKey.annotation]
)
}
// Other methods like sceneDidBecomeActive, sceneWillResignActive, etc.
}
3) Use this package
app_tracking_transparency: ^2.0.5
4) Use this code
Future<void> _requestTrackingAuthorization() async {
if (Platform.isIOS) {
final status = await AppTrackingTransparency.requestTrackingAuthorization();
debugPrint('Tracking status: $status');
}
}
then you are all set
…On Mon, 10 Jun 2024 at 17:40, DevineStar24 ***@***.***> wrote:
We have to give permission that we are tracking them and it will shift
from limited.facebook.login login to Facebook.login
… <#m_-4930324373186260417_>
On Sun, Jun 9, 2024, 1:51 PM AndRud *@*.*> wrote: How to switch from
limited login to full access login ? Have you fixed this the problem? …
<#m_-8071317692350319408_> On Sun, 9 Jun 2024 at 1:35 PM, AndRud @.> wrote:
Sorry I am also finding a solution Hi. Do you receive the next message on
the FB login page? "If you are not using Limited Login, you will need to
handle all Graph API calls using Graph API, iOS. The access token will not
be valid. To learn more about changes to the Facebook SDK for iOS and how
you can continue using the Facebook Login SDK, visit the blog." — Reply to
this email directly, view it on GitHub <#409
<#409>
(comment) <#409 (comment)
<#409 (comment)>>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
<https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
. You are receiving this because you authored the thread.Message ID: @.> I
made an ATT request before FB login and then made it enabled in
FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce,
permissions: [...]) and it worked. However, I still get a warning "If you
are not using Limited Login,..." and do not understand what else should be
done to get rid of it. — Reply to this email directly, view it on GitHub
<#409 (comment)
<#409 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM
<https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM>
. You are receiving this because you commented.Message ID: @.***>
How do you do that ?
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIBMELMJUOTTB2AV4NODD2DZGWJTVAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGE3TKNBZGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
hope this find you informative 😊
On Tue, 11 Jun 2024 at 14:10, Priyanshu Singh ***@***.***>
wrote:
… made this changes in this file
1) AppDelegate.swift
import UIKit
import Flutter
import FBSDKCoreKit
import AppTrackingTransparency
import AdSupport
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
// Request tracking authorization
requestTrackingAuthorization()
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
func requestTrackingAuthorization() {
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
// Tracking authorization granted
debugPrint("Tracking authorized")
case .denied:
// Tracking authorization denied
debugPrint("Tracking denied")
case .notDetermined:
// Tracking authorization not determined
debugPrint("Tracking not determined")
case .restricted:
// Tracking authorization restricted
debugPrint("Tracking restricted")
@unknown default:
// Fallback for future cases
debugPrint("Unknown tracking status")
}
}
}
}
override func application(
_ app: UIApplication,
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
return ApplicationDelegate.shared.application(
app,
open: url,
sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
annotation: options[UIApplication.OpenURLOptionsKey.annotation]
)
}
}
2) SceneDelegate.swift(if not make)
import UIKit
import FBSDKCoreKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) {
guard let url = URLContexts.first?.url else {
return
}
ApplicationDelegate.shared.application(
UIApplication.shared,
open: url,
sourceApplication: nil,
annotation: [UIApplication.OpenURLOptionsKey.annotation]
)
}
// Other methods like sceneDidBecomeActive, sceneWillResignActive, etc.
}
3) Use this package
app_tracking_transparency: ^2.0.5
4) Use this code
Future<void> _requestTrackingAuthorization() async {
if (Platform.isIOS) {
final status = await AppTrackingTransparency.requestTrackingAuthorization();
debugPrint('Tracking status: $status');
}
}
then you are all set
On Mon, 10 Jun 2024 at 17:40, DevineStar24 ***@***.***>
wrote:
> We have to give permission that we are tracking them and it will shift
> from limited.facebook.login login to Facebook.login
> … <#m_5621011029820052389_m_-4930324373186260417_>
> On Sun, Jun 9, 2024, 1:51 PM AndRud *@*.*> wrote: How to switch from
> limited login to full access login ? Have you fixed this the problem? …
> <#m_-8071317692350319408_> On Sun, 9 Jun 2024 at 1:35 PM, AndRud @.> wrote:
> Sorry I am also finding a solution Hi. Do you receive the next message on
> the FB login page? "If you are not using Limited Login, you will need to
> handle all Graph API calls using Graph API, iOS. The access token will not
> be valid. To learn more about changes to the Facebook SDK for iOS and how
> you can continue using the Facebook Login SDK, visit the blog." — Reply to
> this email directly, view it on GitHub <#409
> <#409>
> (comment) <#409 (comment)
> <#409 (comment)>>>,
> or unsubscribe
> https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
> <https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
> https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
> <https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
> . You are receiving this because you authored the thread.Message ID: @.> I
> made an ATT request before FB login and then made it enabled in
> FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce,
> permissions: [...]) and it worked. However, I still get a warning "If you
> are not using Limited Login,..." and do not understand what else should be
> done to get rid of it. — Reply to this email directly, view it on GitHub
> <#409 (comment)
> <#409 (comment)>>,
> or unsubscribe
> https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM
> <https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM>
> . You are receiving this because you commented.Message ID: @.***>
>
> How do you do that ?
>
> —
> Reply to this email directly, view it on GitHub
> <#409 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/BIBMELMJUOTTB2AV4NODD2DZGWJTVAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGE3TKNBZGA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Yes thanks
Now let me implement
On Tue, 11 Jun 2024 at 2:11 PM, PSBARTERGRAM ***@***.***>
wrote:
… hope this find you informative 😊
On Tue, 11 Jun 2024 at 14:10, Priyanshu Singh ***@***.***>
wrote:
> made this changes in this file
> 1) AppDelegate.swift
>
> import UIKit
> import Flutter
> import FBSDKCoreKit
> import AppTrackingTransparency
> import AdSupport
>
> @UIApplicationMain
> @objc class AppDelegate: FlutterAppDelegate {
> override func application(
> _ application: UIApplication,
> didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?
> ) -> Bool {
> GeneratedPluginRegistrant.register(with: self)
> ApplicationDelegate.shared.application(application,
didFinishLaunchingWithOptions: launchOptions)
>
> // Request tracking authorization
> requestTrackingAuthorization()
>
> return super.application(application, didFinishLaunchingWithOptions:
launchOptions)
> }
>
> func requestTrackingAuthorization() {
> if #available(iOS 14, *) {
> ATTrackingManager.requestTrackingAuthorization { status in
> switch status {
> case .authorized:
> // Tracking authorization granted
> debugPrint("Tracking authorized")
> case .denied:
> // Tracking authorization denied
> debugPrint("Tracking denied")
> case .notDetermined:
> // Tracking authorization not determined
> debugPrint("Tracking not determined")
> case .restricted:
> // Tracking authorization restricted
> debugPrint("Tracking restricted")
> @unknown default:
> // Fallback for future cases
> debugPrint("Unknown tracking status")
> }
> }
> }
> }
>
> override func application(
> _ app: UIApplication,
> open url: URL,
> options: [UIApplication.OpenURLOptionsKey : Any] = [:]
> ) -> Bool {
> return ApplicationDelegate.shared.application(
> app,
> open: url,
> sourceApplication:
options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String,
> annotation: options[UIApplication.OpenURLOptionsKey.annotation]
> )
> }
> }
>
> 2) SceneDelegate.swift(if not make)
>
> import UIKit
> import FBSDKCoreKit
>
> class SceneDelegate: UIResponder, UIWindowSceneDelegate {
>
> var window: UIWindow?
>
> func scene(_ scene: UIScene, openURLContexts URLContexts:
Set<UIOpenURLContext>) {
> guard let url = URLContexts.first?.url else {
> return
> }
> ApplicationDelegate.shared.application(
> UIApplication.shared,
> open: url,
> sourceApplication: nil,
> annotation: [UIApplication.OpenURLOptionsKey.annotation]
> )
> }
>
> // Other methods like sceneDidBecomeActive, sceneWillResignActive, etc.
> }
>
> 3) Use this package
>
> app_tracking_transparency: ^2.0.5
>
> 4) Use this code
>
> Future<void> _requestTrackingAuthorization() async {
> if (Platform.isIOS) {
> final status = await
AppTrackingTransparency.requestTrackingAuthorization();
> debugPrint('Tracking status: $status');
> }
> }
>
> then you are all set
>
> On Mon, 10 Jun 2024 at 17:40, DevineStar24 ***@***.***>
> wrote:
>
>> We have to give permission that we are tracking them and it will shift
>> from limited.facebook.login login to Facebook.login
>> … <#m_5621011029820052389_m_-4930324373186260417_>
>> On Sun, Jun 9, 2024, 1:51 PM AndRud *@*.*> wrote: How to switch from
>> limited login to full access login ? Have you fixed this the problem? …
>> <#m_-8071317692350319408_> On Sun, 9 Jun 2024 at 1:35 PM, AndRud @.>
wrote:
>> Sorry I am also finding a solution Hi. Do you receive the next message
on
>> the FB login page? "If you are not using Limited Login, you will need
to
>> handle all Graph API calls using Graph API, iOS. The access token will
not
>> be valid. To learn more about changes to the Facebook SDK for iOS and
how
>> you can continue using the Facebook Login SDK, visit the blog." — Reply
to
>> this email directly, view it on GitHub <#409
>> <#409>
>> (comment) <#409 (comment)
>> <
#409 (comment)>>>,
>> or unsubscribe
>>
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
>> <
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
>>
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE
>> <
https://github.com/notifications/unsubscribe-auth/BI56IPLBNXYPUURD3HIDIHLZGQEE5AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM3TQMRUGE>
>> . You are receiving this because you authored the thread.Message ID:
@.> I
>> made an ATT request before FB login and then made it enabled in
>> FacebookAuth.login(loginTracking: LoginTracking.enabled, nonce: nonce,
>> permissions: [...]) and it worked. However, I still get a warning "If
you
>> are not using Limited Login,..." and do not understand what else should
be
>> done to get rid of it. — Reply to this email directly, view it on
GitHub
>> <#409 (comment)
>> <
#409 (comment)>>,
>> or unsubscribe
>>
https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM
>> <
https://github.com/notifications/unsubscribe-auth/BIBMELMLZVV4MUHO7CHX4QDZGQF63AVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGM4DMNZQGM>
>> . You are receiving this because you commented.Message ID: @.***>
>>
>> How do you do that ?
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <
#409 (comment)>,
>> or unsubscribe
>> <
https://github.com/notifications/unsubscribe-auth/BIBMELMJUOTTB2AV4NODD2DZGWJTVAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGE3TKNBZGA>
>> .
>> You are receiving this because you commented.Message ID:
>> ***@***.***>
>>
>
—
Reply to this email directly, view it on GitHub
<#409 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BI56IPJMHWZSLETALLJ6CFLZG2Z4JAVCNFSM6AAAAABIYSE63KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNRQGEZTKMZUGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
same issue |
I've got this issue and I am also requesting for app tracking permissions with https://pub.dev/packages/app_tracking_transparency Login works completely fine on android it's just the webview goes to limited.facebook.com on ios. Can anyone advise? |
What version are you using?
7.0.0
What OS and version are you using to local deploy your application?
iOS 17.5 and minimum is iOS 14
What platforms are you seeing the problem on?
Android, iOS
pubspec.yaml
Describe the Bug
I simply login and get business pages list which is connect with my Facebook account
and here is my code
` Future faceBookSignIn() async {
try {
loader.value = true;
final LoginResult loginResult = await FacebookAuth.instance.login(
permissions: [
"public_profile",
"email",
"openid",
"pages_show_list",
"business_management",
"instagram_basic",
"pages_manage_engagement",
"pages_read_engagement",
"pages_manage_posts",
"instagram_content_publish",
"instagram_manage_insights"
],
// loginBehavior: LoginBehavior.webOnly
);
}`
in same code it is working fine in flutter_facebook_auth: 5.0.8
Also getting token with my wished permissions
And in lettest version, i am getting facebook login success, but not getting token and getting error
Error that displays in facebook login popup is
**invalid scope requested: the combination of scope requested are not valid**
Expected Behavior
I expect that it should be login in new package version also
To Reproduce
Use permission which i used, and choose app type to other when create app
Add facebook login sdk from Meta developer console
ant try facebook login with latest package
Relevant log output
No response
flutter doctor -v
Info.plist (iOS)
Podfile (iOS)
AndroidManifest.xml
No response
MainActivity.java
No response
MainActivity.kt
No response
index.html
No response
Info.plist (macOS)
No response
The text was updated successfully, but these errors were encountered: