All Questions
49
questions
0
votes
1
answer
26
views
How to set facebook au banner ads in 1 activity and it show in multiple Activity
I set this code in /res/layout/activity_main.xml
<LinearLayout
android:id="@+id/banner_container"
android:layout_width="match_parent"
android:layout_height="...
-1
votes
4
answers
589
views
ERROR : E/AndroidRuntime: FATAL EXCEPTION: main : Caused by: The Facebook sdk must be initialized before calling activateApp
hello everyone i have error in my android/java project
E/AndroidRuntime: FATAL EXCEPTION: main
Caused by: The Facebook sdk must be initialized before calling activateApp
screenshots:
image 1
image 2
2
votes
2
answers
2k
views
My android app Crash when trying to load a facebook Native Ad (java.lang.NoSuchMethodError: No static method isChildDirected())
My application crashes when trying to load a facebook Native Ad, here is the log Error :
2020-11-14 12:31:15.968 5710-5710/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.demopackage.name, ...
0
votes
1
answer
2k
views
error: cannot find symbol method setAdListener(<anonymous InterstitialAdListener>) & (<anonymous InterstitialAdListener>)
error: cannot find symbol method setAdListener()
error: cannot find symbol method setAdListener()
com.facebook.ads.AdView adView_banner = new com.facebook.ads.AdView(this, getString(R.string....
1
vote
0
answers
102
views
Open a post ID on Facebook app with Intent
I have installed 2 Facebook app on my android device (com.facebook.katana, com.facebook.katanb).
Now, I want to open a post id on com.facebook.katanb package.
I tried as below:
Intent ...
0
votes
1
answer
267
views
How to add two override onActivityResult methods in one java activity?
I am unable to use two override onActivityResult methods in one java activity. I tried loop but that doesn't make any sense to use loop in this. I am attaching the code help me out in this.
@Override
...
2
votes
1
answer
220
views
Android Studio - Only one build.gradle in the projetct folder
So I started working on my first app in Andorid Studio and I was hoping to implement a login feature that uses Facebook. When watching tutorials, I noticed that they have two build.gradle, one is the ...
0
votes
0
answers
959
views
CreatePlatformSocket() failed: Operation not permitted (1) during facebook login Android
I have an error:
E/chromium: [ERROR:socket_posix.cc(94)] CreatePlatformSocket() failed: Operation not permitted (1)
[ERROR:socket_posix.cc(94)] CreatePlatformSocket() failed: Operation not ...
0
votes
1
answer
455
views
Facebook RegisterCallback not working properly
I'm making an app named "BrandShopping". The app is intended for online delivery and shopping. That's why I need different login methods so the user can choose what they feel is most comfortable.
The ...
0
votes
1
answer
55
views
Having Trouble Checking If User Already Logged In With Their Facebook Account
I have been able to successfully implement the Facebook login button. My only problem now is I'm having trouble checking if the user already logged in.
This is code for when the user clicks the login ...
1
vote
0
answers
38
views
I am getting these run time errors while integrating with facebook and creating on account, how to fix them?
Hi I am getting these errors on run time,
when I integrate with facebook first time I run app it gives me that error
invalid scope user friends
Then I try to change permissions like email, ...
5
votes
1
answer
4k
views
How to get user Gender and birthday from facebook in android
I am Trying to get gender and birthday of current login user from Facebook, but I always getting (id, email, name) I have search everything related to this but I didn't get exactly that for I am ...
0
votes
2
answers
76
views
Retrieve Data From Facebook to Android
Currently I am working with an android project where the user should be able to login to facebook with the button - Connect with Facebook, that would redirect to the next Activity with all collected ...
1
vote
2
answers
66
views
if previously logged in on app using android studio
OK so i am sort of new to android studio and java
i am attempting to have an activity that checks if the user was previously logged in via, the login option, google or facebook
if they were i want ...
2
votes
1
answer
94
views
after adding facebook sdk why the navigation view doesn't work
I created a simple Navigation view project in android studio 2.1 then after i added facebook sdk(Maven central repositories) in my build.gradle .It was working just fine before i added facebook ...