Questions tagged [android-facebook]
The Facebook SDK for integrating an Android app with Facebook. Questions should involve the usage and development of the Android Facebook SDK, not merely about using Facebook.
618
questions
1
vote
2
answers
64
views
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:preDebugBuild'
When trying to build an Android app, I am getting the following error. The interesting thing is that the exact same source code builds correctly on another computer, which makes me think that maybe ...
0
votes
1
answer
35
views
Why callback functions are not called in Android Facebook Login?
There is no any Log.w is appear in Logcat after logged in, why?
This Code inside onCreateView in LoginFragment
CallbackManager callbackManager = CallbackManager.Factory.create();
fragmentLoginBinding....
0
votes
0
answers
50
views
ShareLinkContent on facebook in android
I encountered 1 problem.
Hope everybody help please.
I have 1 android application using Facebook sdk. Recently Facebook reported that the app violates policy 4.a, (as attached image), So what should ...
0
votes
0
answers
547
views
App was deactivated because of violating the Facebook Platform Policy 6.1 (Why it showing the response code as 0)
I have received a mail from the Facebook developer regarding the deactivation of my app because of violating policy 6.1.
Here I have checked using the tester account. It shows the error as "...
1
vote
2
answers
75
views
Facebook SDK getting hash for app with Google Play Signing
I need to get some hash from my app signing for Facebook SDK https://developers.facebook.com/quickstarts/?platform=android
We could get like this but old way because seems Facebook doesn't know that ...
0
votes
1
answer
526
views
The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first react native
I know this was asked before, but none of the solutions seem to help. I'm using first time Facebook SDK in my application.
MainActivity.java:
package com.spade;
import com.facebook.react.ReactActivity;...
0
votes
1
answer
318
views
How to check facebook login status in Webview android?
I am developing an android application where i have redirected to https://m.facebook.com/ inside a web-view.
What is required?
I want to check the login status, once login is successfully done and ...
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", ...
1
vote
0
answers
44
views
android facebook login button behaviour
I implemented Facebook Login functionality in my android app. But there is a unwanted behaviour that appears.
loginButton.registerCallback(callbackManager,
object : FacebookCallback<...
0
votes
1
answer
405
views
Is there a way to track Facebook Campaign Ad Installs with Expo managed workflow?
Stack: Expo React Native, expo-branch
I am searching for a way to track Facebook Campaign Ad Installs with Expo in the managed workflow. I have integrated expo-branch (link below) and set up the ...
0
votes
1
answer
148
views
Android Kotlin - share on specific app like facebook
I want to make a custom share menu on which apps stuff can be shared and add some custom options.
I don't like the standard createchooser because apparently nobody knows how to customize this crap: ...
12
votes
2
answers
1k
views
How does the Facebook Android App install Facebook Messenger?
I was very surprised when I found out that the Facebook app on Android apparently is able to install the Facebook Messenger app without asking for permission.
I'm aware that it is possible to install ...
1
vote
2
answers
733
views
How To Create Test Facebook Ads || How to Get Android Advertisement ID (AAID) programmatically?
How to create Test Device to Facebook Ads >> To Create Test Device you need Enter a device ID (IDFA, AAID):
sometimes we need to get the android advertisement id AAID for android device, when we ...
1
vote
1
answer
323
views
Android Facebook Key Hashes Configuration
I m getting Error "This app ha no key hashes configured."
where i have configured key hashes as shown in below image:enter image description here
plz guide me, thanx in advance.
1
vote
0
answers
269
views
Invalid scopes error message, when login from developer account in facebook
My app is live on facebook for more than a year now. Recently i have a new requirement to get user's gender, location and other information when user logs in through facebook.
My email address is ...
0
votes
1
answer
187
views
Change Facebook login background
I have the following code used as a facebook login. I followed their tutorial and implemented Facebook login into my android app. Now I want to change the login button background. How can I do that?
...
0
votes
0
answers
34
views
How do I share Facebook contents on Android
I'm trying to share a post on my FB wall by an Android native app.
I'm following the official guide available @ FBOfficial
I would know if it's possible to share a text, an image and an hashtag and ...
1
vote
0
answers
155
views
Facebook login button doesn't display in fragment
I did facebook login in my project. It works well in activity. I just trying add in fragment. Because, after login I want user can logout with facebook button from this fragment. But Facebook login ...
0
votes
1
answer
2k
views
Removing resource com.myapp.application:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value
From one day to another I'm getting this error in my project:
Android resource linking failed
warn: removing resource com.myapp.application:string/...
0
votes
1
answer
891
views
Android Facebook Registercallback not called
I am using facebook login into my application. Now I am facing one strange issue in my project LoginManager.getInstance().registerCallback not getting called.
I am using following codes:
FacebookSdk....
3
votes
1
answer
952
views
Android Facebook SDK lowers app performance
I am using Facebook SDK for my android app. I am facing scroll lags and performance issues all over the app. Removing the sdk removes all the issues. But i intend to use the sdk for analytics purpose. ...
0
votes
1
answer
118
views
Facebook Request for App Review. Does it refer to native phone apps only?
I received at https://developers.facebook.com/apps/ the following message:
Request for App Review
Your app was proactively submitted. As a result, permissions you once had access to now appear in ...
0
votes
0
answers
144
views
Cannot generate correct facebook key hash for release apk?
Steps that I've tried,
1) Generated the keyhash (although i got a warning/error as "keytool: command not found") from the official developer documentation.(keytool -exportcert -alias ...
1
vote
0
answers
64
views
Is it possible to log in to Facebook from another device and use the access on a primary device
I want my users to be able to log in to Facebook from a tablet and use their access in a Unity project installed on a virtual reality headset (Oculus Go).
My goal is to avoid people to log in to ...
0
votes
0
answers
520
views
Android needs to initialise Facebook SDK, but is already initialized
I'm getting the error:
A valid Facebook app id must be set in the AndroidManifest.xml or set
by calling FacebookSdk.setApplicationId before initializing the sdk.
My codes:
Manifest.xml
<...
1
vote
5
answers
1k
views
How to set radius for all corners of Simplee Drawee Android
Not able to set radius for all the corners of SimpleDrawee of facebook android sdk.
What i have Tried:-
RoundingParams roundingParams = RoundingParams.fromCornersRadii(8f,8f,8f,8f);
...
0
votes
1
answer
748
views
My app crashing/closing after hitting "continue with facebook"
I am trying to integrate facebook with my app in android studio. I am an amateur at the kotlin language that I am using to achieve my goal.
I followed the tutorial on the facebook developers page. ...
14
votes
2
answers
4k
views
Android facebook sdk internal utility java.lang.AssertionError
I have been using version 4.27.0 of facebook sdk for android. I have been getting a crash only for android 8+ devices. The stack trace is as follows:
Fatal Exception: java.lang.AssertionError: No ...
11
votes
3
answers
14k
views
Login with facebook crash the app if using FaceBook Lite
In my app I'm using facebook SDK to perform a login and register methods.
It's Okay when I have the general FaceBook application or using normal web-browser on my device.
But when I have FaceBook ...
-4
votes
1
answer
84
views
Not getting gender through facebook in android [closed]
We are facing problem while getting gender through graph api. We are able to get gender few of account but few account not able to get the gender. We have provided the gender request but not able to ...
2
votes
1
answer
1k
views
Facebook Share Dialog not showing - Android Facebook API
On clicking the facebook share button the share dialog comes and immediately disappears. In the shareDialog.registerCallback it goes to onError method. Don't understand why is it happening.
...
0
votes
0
answers
824
views
I am unable to sign in with Facebook
I want to login via Facebook in my android app. I have followed the documentation. But problem is I can only login 1 times with admin Facebook id. Next time while I do login with Facebook id an error ...
1
vote
2
answers
53
views
Facebook unable to get all user photos
I want to fetch all photos of user who is logged in to my app using facebook .
I am getting 200 error code
Bundle bundle = new Bundle();
bundle.putString("fields", "user_photos");
String id =...
4
votes
0
answers
188
views
How should Facebook Login app implement the new 60- or 90-day login requirement?
Facebook sent out developer notification pointing to
https://developers.facebook.com/docs/facebook-login/access-tokens/refreshing:
The page contains 2 concerning portions:
When you use iOS, ...
0
votes
0
answers
313
views
How to prevent activity leak by Facebook login 4.33.0?
There already are similar questions but the answers were "use the latest version and it will be fixed." However, I think I am using the latest version (4.33.0), but if I create a simple project (full ...
1
vote
0
answers
208
views
Android Facebook Login Sdk: getActivity().getCallingActivity() returns null from their LoginFragment.class
I'm using the facebook-sdk for the facebook login button. This the facebook library I'm using:
implementation ('com.facebook.android:facebook-android-sdk:4.0.0'){
exclude group: 'com.android....
0
votes
1
answer
29
views
Android Facebook Album cover photo
I am trying to fetch Cover Photo of an album using Graph API.
Here is my code:
Bundle params = new Bundle();
params.putString("type", "thumbnail");
/* make the API ...
2
votes
2
answers
1k
views
Not able to get the gender in graph api in android
I am not able to get the gender here in OnCompleted function
I am able to get other params like id,name,email
Currently app is in Dev mode
This was working yesterday.
Code:
GraphRequest request = ...
-1
votes
1
answer
34
views
Facebook key hash error
And again. I've got Facebook key hash error like this. Carefully noted down that hash key and then insert it into "Key hashes" field into my Facebook app. But this doesn't helps to me, the same error ...
2
votes
0
answers
68
views
Facebook: Invalid hash key
I am using three device to test Facebook login. Invalid hash key shown when test on Lenovo k8 note. I have place release and debug key on Facebook console.
To generate release key-
keytool -...
2
votes
3
answers
4k
views
Facebook app testers not receiving notification
I am writing an Android app which makes use the the Facebook SDK (specifically the login and friends list). I added the first 4 testers to https://developers.facebook.com/apps/{APP-ID}/roles/roles/ ...
6
votes
2
answers
4k
views
Android: Open SMS Intent
In my Android Aplication I just need to open SMS intent with pre populated message_body and the PhoneNumber.
Following is the code I am trying
Uri uri = Uri.parse(String.format("smsto:%s", ...
1
vote
1
answer
692
views
how disable automatic logging with facebook
I am trying to integrate login with faceBook,I follow facebook tutorial
from facebook developer
https://developers.facebook.com/docs/facebook-login/android
and login is successful,but when to ...
1
vote
0
answers
129
views
Proguard problems with Gigya integration Facebook SDK
I've had problems with proguard showing the facebook login button. It wasn't showing when an APK was executed running Proguard. Finally, I manage to solve it by adding the following lines in the ...
2
votes
2
answers
2k
views
React Native: facebook-android-sdk dependency build error
I'm running React Native v0.53.0 and npm installed react-native-fbsdk v0.7.0 but I can't build my project.
I've seen various issues and stackoverflow questions and it seems like it problem is sycning ...
0
votes
2
answers
128
views
ANDROID: How to fetch image URLs from user photos in facebook?
I am trying to get all user face book photo urls.
Currently I am able to get all image ids using Graph API. But I want get either image or image url to download. Following is the code snippet I am ...
2
votes
0
answers
75
views
Facebook login in android and IOS and server side, which way is best?
I want to integrate Facebook login from my android and IOS app, and there is Nodejs server at backed,
As I know we can do FB login in two ways
1. Server side(by providing FB login API's through API ...
1
vote
1
answer
50
views
Can not sign in with Google and Facebook with Release Apk
I am working with android application which contain sign in with google and sign in with Facebook , in the debugging mode both worked fine but after making release Apk and upload it to play store , ...
7
votes
4
answers
3k
views
Android facebook lib conflicts, how to exclude conflicting?
Official facebook sdk lib conflicts with android sdk, especially with:
'com.android.support:animated-vector-drawables:27.0.1'
Gradle:
apply plugin: 'com.android.application'
android {
...
6
votes
1
answer
1k
views
Is there a way to use Android's LifecycleObserver to notify about onActivityResult?
I currently use LifecycleObserver for notifying about events such as onStart of my view. This is great for components as presenters or handlers, such as FacebookLoginHandler that needs to register the ...