Comments (4)
Ah, OK, I was confusing your-app-secret
with facebook_client_token
on the client. Thanks for clarifying. I'll try to implement this.
from flutter_login_facebook.
Hey!
This moment is a little messy and unclear in the Facebook documentation, so I can't provide you a 100% valid guide on how to do that.
However I can offer an option on how to do that.
You will need to use an endpoint with the disturbing name debug_token
(documentation):
https://graph.facebook.com/debug_token?
input_token={input-token}&
access_token={valid-access-token}
With this endpoint you can check the access token from the client (input_token
) and get some info (including user_id
).
But first you need to get an access token for server calls (access_token
). You can do it with oauth/access_token
(documentation):
https://graph.facebook.com/oauth/access_token
?client_id={your-app-id}
&client_secret={your-app-secret}
&grant_type=client_credentials
You can read this article for a more detailed explanation.
from flutter_login_facebook.
Thanks for the fast response!
The your-app-id
and your-app-secret
values are saved in the manifest file in Android and the Info.plist file on iOS. I assume there's no uniform way for the Dart code on the client to pull these out of the appropriate platform code, depending on the mobile platform, so that it can pass these encrypted to the server? I want to avoid having to put the same exact values in a third place, in order for the server to have access to them.
from flutter_login_facebook.
No, your-app-secret
should never be on the client side. Both parameters should be defined on the server side, in the configuration (well, you can pass app-id
from the client, but this is less secure and there is no point in that).
from flutter_login_facebook.
Related Issues (20)
- Login not working when facebook app is installed
- Doesn't work if use SceneDelegate HOT 1
- Very high Fabebook API calls HOT 3
- You're calling logging in Facebook with an activity supports androidx activity result APIs. Please follow our document to upgrade to new APIs to avoid overriding onActivityResult(). HOT 4
- Infinite loop for IOS user with native Facebook app and not logged on Safari HOT 3
- can I do the embedded signup for facebook through this plugin? HOT 1
- Execution issue on iOS HOT 5
- Login not work in IOS HOT 7
- App Transparency Tracking (ATT) HOT 1
- make sure to call FacebookSdk.sdkInitialize() first. HOT 1
- BUG: It gives wrong position when you tapping on anywhere on the Arabic app with Arabic Android
- Failed to list versions for com.facebook.android:facebook-login HOT 3
- Facebook Login not working when Facebook app is installed, Working when the app is not installed in Flutter HOT 2
- Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared
- Library not loaded: @rpath/FBSDKCoreKit.framework/FBSDKCoreKit HOT 10
- Do not log in on android 11 or higher HOT 2
- [!] Error installing FBSDKCoreKit HOT 4
- invalid access token? HOT 1
- Error (Xcode): Multiple commands produce 'build/ios/Release-iphoneos/Runner.app/Frameworks/FBSDKCoreKit.framework' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_login_facebook.