Questions tagged [facebook-android-sdk]
The Facebook SDK for Android helps Android app developer implement Facebook functionality into their Android apps. Features include Facebook Login, Friend and Place pickers, session management, native object responses from the Graph API and Feed and Requests dialogs.
1,844
questions
1
vote
0
answers
26
views
Facebook SDK (Android): events can be seen in 'test events' debug view but are not reported in campaign manager
When I test my app (either by launching it from Android Studio or the app in production on Google Play), I see the events in in 'test events' debug of the Facebook console, as can be seen here:
...
1
vote
0
answers
276
views
Facebook SDK : 'Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the package visibility needs are declared'
I use the Android Facebook SDK. I get the following message in Logcat:
com.facebook.internal.NativeProtocol: Apps that target Android API 30+ (Android 11+) cannot call Facebook native apps unless the ...
0
votes
1
answer
128
views
How do I run older Flutter Project that has Gradle build errors?
I am trying to running a pretty old Flutter project within these version:
Flutter 1.22.6
Dart 2.10.5
Java 1.8.0_321
Android Studio 2021.2.1
And for whatever reason, after I update my Android Studio (...
2
votes
0
answers
150
views
How to use Facebook's new LoginManager.createLogInActivityResultContract properly?
Facebook added a new API (LoginManager.createLogInActivityResultContract) for handling login using the ActivityResultContract APIs in SDK version 13.2.0 (https://github.com/facebook/facebook-android-...
0
votes
1
answer
210
views
Standard events appear in event manager but can't find them in ads manager
In my Android App I am sending 3 standard facebook events:
FindLocation
CustomizeProduct
CompleteRegistration
All those events appear in Events Manager so I know they are being sent correctly:
But ...
0
votes
1
answer
209
views
Android CallbackManager call back stopped working after upgrading to Facebook SDK 12.0.0 (Or 13)
I have an Android app that does login via Facebook.
Everything was working when I was on Facebook SDK
implementation 'com.facebook.android:facebook-android-sdk:11.1.1'
However, recently I noticed in ...
2
votes
0
answers
78
views
Facebook Android SDK does not recognize installs
Facebook Android SDK receives data about the activation of the mobile app, but not about the installs. We rolled back the SDK version, checked the code 10 times - but we didnt get any result.
enter ...
0
votes
1
answer
91
views
show a list of the pages you manage toggle is off by default
My app has been approved for pages_show_list and permissions listed below. Everything was working fine till yesterday, but suddenly when user tries to login, show a list of the pages you manage toggle ...
0
votes
2
answers
58
views
Facebook Graph API Request for only todays photos
I want to get all the uploaded photos of the logged in user that was uploaded today. I could fetch all the photos and filter it with the created_time field. But I would like to make the request to ...
0
votes
1
answer
296
views
React Native Facebook Login Android - Embedded Browser is disabled
I'm developing a facebook login feature for react native using react-native-fbsdk-next. However when testing on android I get this error when trying to login with facebook: "For your account ...
0
votes
0
answers
29
views
Log out button facebook android
I added a facebook login button to use my facebook graph api app,
it logs in just fine, when I try to log out I get the following:
As you can see I don't get the option to log out,
I tried all of the ...
0
votes
0
answers
115
views
Android- App Link- Not getting Intent while accessing the base URL for second time (for facebook Login)
I'm performing facebook login by following is the work flow
Building a URL with time stamp and userID and then passing to a Chrome Custom tab
The server will communicate with facebook and show option ...
6
votes
3
answers
2k
views
Facebook login was disabled and now it throws errors
We have Android and iOS apps with integrated Facebook login. Recently Facebook disabled our app because "During Login, your app is crashing or hanging excessively". The problem however is ...
0
votes
0
answers
166
views
Instagram - Error sharing content with ADD_TO_STORY Intent action
I'm having some troubles working with the IG Sharing to Stories API.
I've discovered two weird behaviours, which prevent me to use the Intents.
Expected behaviour
I have a sharing button in my app, ...
1
vote
1
answer
238
views
error: cannot find symbol AppLinks.getTargetUrlFromInboundIntent in com.facebook.android:facebook-android-sdk:11.3.0
While upgrading the facebook SDK from a lowest version(7.1.0) to latest version (11.3.0) got symbol: method getTargetUrlFromInboundIntent(ItemViewActivity,Intent) location: class AppLinks
I have got
...
1
vote
1
answer
383
views
Package name & Class Name of facebook app in flutter
I want to add the Facebook app event in my Android and IOS application develop using flutter.
Android: It's asking for the name of the activity which will be going to use for the deep- link with the ...
0
votes
0
answers
50
views
Invalid scopes Facebook
I have completed App Review, but now that my Android application is in live mode, I get the following error:
Invalid Scopes: instagram_manage_insights, pages_show_list, instagram_basic, ...
2
votes
1
answer
166
views
Facebook share api for android opens web-based dialog instead of native app
I implement facebook share in my android app and as I read the docs it says :
"The Share dialog switches to the native Facebook for Android app, then returns control to your app after a post is ...
3
votes
1
answer
188
views
Facebook share link with metadatas from android app
I implement sharing on facebook in my android app and according to facebook share sdk for android there is no option to share a link that will look like this :
As I dived into the docs - https://...
1
vote
1
answer
93
views
Android facebook share opens web page instead of native app
I am using Facebook share SDK and I read the docs which says that if the native Facebook app is installed then it will be used as a share dialog otherwise a web page will be used for sharing.
I do ...
0
votes
1
answer
105
views
how to make facebook android app deep links
I am trying to create a deep link that will redirect from a url I post on facebook into my android app and I noticed there is something in facebook api called App Links in this link : https://...
1
vote
2
answers
656
views
Android: How to get raw image data from camera
Currently, I am planning on doing an app utilizing RAW data provided by the camera in Android devices (pixel 2).
And I use ARCore to get frame data as following:
final Frame frame = session.update();
...
1
vote
1
answer
78
views
Unexpected call to LoginManager.onActivityResult - Facebook SDK Android
My Dependency
dependencies {
implementation 'com.facebook.android:facebook-login:11.0.0'
}
I've been using a LoginButton for moths without any problem but since today after call to login if the ...
0
votes
1
answer
44
views
Facebook Official Android SDK - How do I open a page?
I would like to open the Facebook app and go directly to a Facebook page when the user presses a button in my app.
How do I do that using the official Facebook SDK?
So far, all the solutions I've seen ...
1
vote
1
answer
184
views
How to know the version of facebook android sdk in node_modules/react-native-fbsdk?
For iOS we can look at the FBSDKCoreKit.h it states the SDK version there.
Is there something similar for Android? How do I know which facebook SDK version it's on?
Would be better if there's a ...
0
votes
0
answers
82
views
In Facebook Android SDK, How to fetch is_verified flag using GraphRequest?
We are trying to fetch is_verified like below:
GraphRequest.newMeRequest(loginResult.accessToken) { `object`, response ->
Log.v("LoginActivity", ...
3
votes
2
answers
537
views
Facebook App Install Ads: Is it mandetory to have the SDK installed?
We have developed a mobile app for both Android and iOS. We are planning to promote it through Facebook via Facebook App Install Ads. We don't want to track the number of installs or anything, because ...
0
votes
1
answer
191
views
Facebook Login :Can't Load URL The domain of this URL isn't included in the app's domains when using login with facebook-android-sdk in android studio
By following the documentation of facebook SDK for android I have this issue :
Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains ...
5
votes
2
answers
990
views
Facebook Audience Network: is Facebook Login required?
we've integrated Facebook Audience Network in our Android and iOS apps a few days ago. We're using AdMob Open Bidding mediation.
Technically speaking everything seems to be ok, the SDK is initializing ...
0
votes
1
answer
39
views
How to set up Interface and listener in custom Dialog class to pass Facebook's login callback to firebase auth in MainActivity?
I'm having some issues implementing a custom dialog class getting the response from facebook and passing it back to the main activity.
Here there's my custom class:
class LoginDialog(var c: Activity) :...
1
vote
0
answers
91
views
I have set interstitial ads like this code get all time error code com.facebook.ads.AdError@e0e1b7a
I have recently tried to integrate FB interstitial ads to android ads and I turn on test mode.
Banner ads working fine but interstitial ads give this error com.facebook.ads.AdError@e0e1b7a
Here is my ...
1
vote
0
answers
160
views
Facebook Android SDK warning: "Removal of Tokenless Access Point"
I received the following warning via email from Facebook Developers a few days ago:
As part of our Graph API 8.0 release, we announced changes to how
developers can access User Picture and FB/IG ...
1
vote
2
answers
2k
views
Facebook Audience Network 6.0.0 Update for Unity is required
Facebook Audience Network has update its android sdk to 6.0.0, due to this, Android SDK takes com. facebook file with 6.0.0, but they didn't update unity sdk.
Due to this, Facebook Audience network ...
0
votes
1
answer
1k
views
Android 11 Preview - Facebook Login Not Working
To cut things to the point.
I have the Facebook login implemented, pretty much this way: https://developers.facebook.com/docs/facebook-login/android/
And it works perfectly fine when compiled with ...
0
votes
2
answers
115
views
(Facebook Login Implementation - Android) Generating invalid Key Hashs for both 'debug' and 'release' environments, how to fix this?
I would like to share that I wasn't able to find on StackOverflow. I will be sharing what I have done so far and the respective output which I have never faced before.
What I have done:
Followed the ...
7
votes
0
answers
342
views
User Properties has been deprecated in Facebook Analytics
We are trying to integrate Facebook analytics into our apps and we notice that user properties has been deprecated on 22 Jun 2020. But doc doesn't not say anything about the alternative way. Is there ...
1
vote
1
answer
420
views
Implement facebook banner ads in recyclerview
I am trying to implement an Facebook banner ad(not native banner) on 3rd position of the recyclerview. I have created an ads_row.xml which has the ad layout. ads_row.xml is displayed properly but ad ...
0
votes
0
answers
69
views
How can i call a content provider myself in the code?
I want to remove this from my androidmanifest file :
<provider android:name="com.facebook.internal.FacebookInitProvider"
android:authorities="%package%....
0
votes
1
answer
36
views
Cannot get list of albums Facebook GraphRequest Android
I am try to get facebook shared albums from facebook GraphRequest API. in loadAlbum method can get only id as a object , this is facebook sdk implementation 'com.facebook.android:facebook-android-sdk:[...
3
votes
1
answer
676
views
Login with Facebook latest sdk if native app install then dialog not open in android
I am using latest Facebook-sdk for Login with Facebook
implementation 'com.facebook.android:facebook-login:[5,6)'
Try to login with facebook using custom button
I am also getting this error in ...
0
votes
1
answer
795
views
Why Facebook Login Not Working In Signed Release APK In Android?
I'm developing an android application that provide to users login with Facebook with firebase help, my problem is when i generate signed release APK the login stops from working and i look up for some ...
0
votes
2
answers
208
views
Adjusting Google and Facebooks official Log-In Button with Firebase
I'm trying to add Google and Facebook Login through the Firebase Authentication to my App. When I add the official Google & Facebook Log-In button at a LinearLayout it looks like below:
(Nexus 5X ...
1
vote
1
answer
377
views
Facebook Android SDK: 'cannot resolve symbol EVENT_NAME_SUBSCRIBE'
I am trying to implement the following Facebook SDK standard event :
/**
* This function assumes logger is an instance of AppEventsLogger and has been
* created using AppEventsLogger.newLogger() ...
0
votes
0
answers
323
views
facebook sdk unity no show hash
hello i'm trying to set up facebook sdk android but the hash is not displayed I installed openssl but it still doesn't work does anyone know how to fix it? unity 2019.2.11f1
0
votes
0
answers
52
views
"Invalid key hash. The key hash C/*****************= does not match any stored key hashes" error on Facebook Android app
I published my Android app (with Facebook Login integration) with a debug key hash.
I have fixed this by performing:
keytool -exportcert -alias <RELEASE_KEY_ALIAS> -keystore <...
4
votes
0
answers
441
views
Turn off automatic collection of Purchase event only in Facebook SDK for Android
I am upgrading Facebook SDK for android to v5. https://developers.facebook.com/docs/app-events/getting-started-app-events-android#
I don`t want the Purchase event to be logged automatically since I ...
6
votes
4
answers
3k
views
Error after adding Facebook login dependency in Android
I want to integrate my app with facebook login, but when adding below dependency and syncing Gradle:
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
I got the following errors:
...
3
votes
1
answer
34
views
Facebook Extra permission request button not found
Hello I found this from developers.facebook.com permissions video.
This one is from my developer account.
As given in the above image there is a request button at the right side for request extra ...
1
vote
2
answers
2k
views
facebook ad cant' load in sdk version 5.+
i have create facebook ad demo app, but can't load any ad(Interstitial ,Native ,Banner) in any version sdk.
if i using sdk version 5.3.0 then facebook ad return error.
Error: New bundles must use ...
1
vote
1
answer
162
views
Share Facebook profile after Login - user_link
We have a platform where users get logged in with Facebook. Now on customers demand, we want to provide a feature where we will request logged in users profile link at the time of login via user_link ...