Questions tagged [facebook-android-sdk]

1

votes
0

answer
38

Views

Cannot import Request and Session classes from Facebook Android Sdk

I am trying to import com.facebook.Request and com.facebook.Session classes with the goal of getting the Facebook friendlist from Facebook into my app. import com.facebook.Request; import com.facebook.Session; But the words Request and Session keep being in red, as Android studio cannot recognize it...
Van
1

votes
1

answer
212

Views

Using Graph API , how to retrieve Images of the comments and replies to the comment?

I am creating an Android App.The App have a feature that retrieve Facebook posts using Graph API. My Problem My Problem is , the received JSON lacks the following fields: Url for the images attached with the comments Replies to the comments Only No. of likes available. No Reactions list For posts...
Lord Commander
1

votes
1

answer
278

Views

Android emulator without Studio launch error

I'm trying to install just the Android Emulator on my Mac, not the whole Android Studio. So far I have: 1) Installed Android-SDK via Homebrew brew cask install android-sdk 2) Added to my $PATH, and checked I have no other ANDROID related PATHS going on. export ANDROID_SDK_ROOT='/usr/local/share/and...
JMWhittaker
1

votes
1

answer
79

Views

Eror adding facebook audience network banner on ConstrantLayout

Hello there i have a problem adding a fan banner in my application i get a error i'v added the banner container in my layout then i instantiate the Ad - View and load it in my activity public class MainActivity extends AppCompatActivity { private AdView adView; @Override protected void onCreate(Bu...
Yassine Khachane
1

votes
0

answer
17

Views

Paginate api graph results on android

I get posts from several pages and show then in my app. I have a MAinActivity where I make the API call: GraphRequest request = new GraphRequest( AccessToken.getCurrentAccessToken(), '/', null, HttpMethod.GET, new GraphRequest.Callback() { public void onCompleted(GraphResponse response) { Intent fee...
Juan Lopez
1

votes
3

answer
1.2k

Views

Facebook android sdk not clear previous login at logout

My app has facebook login integration in it, And i found one issue while re-login, When i tried to logout from facebook and after that re-login i am getting previous user auto login in my app but what i need is to login as new user. Don't Know what's Going wrong My Logout code is val parameters = B...
Jack
1

votes
1

answer
89

Views

Communicating with Facebook Messenger with API / Deeplink

I have an app which will, at some point, require Facebook Messenger to scan QR to connect with a bot. I found two ways to scan a QR with messenger so far: 1-) Launch messenger and go to 'People' tab and press 'Scan QR' -> Scan the code 2-) Launch messenger, open camera, hold down to screen until cir...
Mel
1

votes
0

answer
61

Views

How to style Facebook logout dialog window

I need that facebook logout dialog will be in my dark theme style, but when i'm setting my activity to dark theme, it won't apply. And can't create dialog for this action by my self, so here's question, how to style it? I have the same problem with facebookbutton, but i just replace it by my own an...
Toper
1

votes
1

answer
105

Views

Facebook SDK upgrading from 2.5 to 2.12

Before I would have a Session fbSession; object that I would get when logging in using the FacebookFragment. And at log out from my app, in order to clean my session, I would do this. if (PSSocialService.getInstance().fbSession != null) { PSSocialService.getInstance().fbSession.closeAndClearTokenInf...
rosu alin
1

votes
3

answer
153

Views

Android CTS doesn't executes tests

I'm able to execute a test from command line for example run cts -c android.display.cts.DisplayTest the result says that XML test result file generated at 2018.05.31_15.33.30. Passed 0, Failed 0, Not Executed 0. Anyone have an idea?
IVGreen
1

votes
0

answer
356

Views

Unable to change facebook app to live mode from development mode

I am using the facebook login in my app. When I configured the fb app using their doc and I try to change the app to live mode, I couldn't. It shows 'store id not found in public markets - Your app must be available in every public store in order take your app Live. Make sure the ID (package name) i...
Anas Ahamed
1

votes
0

answer
74

Views

android - Get facebook page post without user login

I'm trying to create an android app that shows the facebook public page post. I tried to use facebook android sdk and it seems that the app needs to be review but my app does'nt need to login the user, I want only use my own access token. So I try to use restfb but I'm facing problem when I use it....
1

votes
0

answer
64

Views

Does NativeAdsManager auto refresh native ads after impression of all loaded native ads?

Does NativeAdsManager auto refresh native ads after impression of all loaded native ads? suppose i am initializing NativeAdsManager for 5 ads. NativeAdsManager manager = new NativeAdsManager(this, 'PLACEMENT_ID', 5); will manager auto reload after calling manager.nextNativeAd() 5 time?
TN Yadav
1

votes
0

answer
34

Views

Tracking progress of playing Instream FAN Video Ad

I have encountered a problem while implementing Instream FAN Video Ads handling. What I need is to track a progress of playing each ad. As docs say, all we need to do to play video ads is to provide view layer which ads player will be added to. It seems to be no way to handle playing these ads by y...
Bartosz Wilk
1

votes
1

answer
139

Views

Facebook ads for kotlin

i am trying to show facebook ads on my android app written in kotlin but everytime i try to add code it shows errors, i searched everywhere but could not find a kotlin version adView = new AdView(this, 'YOUR_PLACEMENT_ID', AdSize.BANNER_HEIGHT_50); // Find the Ad Container LinearLayout adContainer =...
Fluent Gamer
1

votes
0

answer
38

Views

Android build fails after adding the facebook SDK version 4.26.0

In my application I added facebook SDK version 4.26.0 by adding as a module after downloading it. And then added to the dependencies by following the steps (File -> Project Structure -> Dependencies -> :facebook-android-sdk-4.26.0) in the Android Studio. And then I updated the AndroidManifest.xml f...
GeekySelene
1

votes
0

answer
32

Views

Facebook Sharing callback doesnt work in Facebook Android SDK 4.26.0

In my app I've integrated with FB SDK 4.26.0 for a song sharing feature. The sharing dialog works ok and I'm able to share with both Facebook app and WebDialog. However, after successful/failure sharing my callback doesn't work, making me unable to give the response. So I can't even show a toast mes...
GeekySelene
1

votes
0

answer
497

Views

Error: Program type already present: com.facebook.ads.Ad

I am trying to implement facebook sdk according to this, https://developers.facebook.com/docs/audience-network/android When I trying to compile it im getting this error. Error: Program type already present: com.facebook.ads.Ad I'm using android studio 3.2.1 this is my gradle apply plugin: 'com.and...
Hi Im Naru7o
1

votes
0

answer
29

Views

facebook app links not working on my Android app

I am trying to put facebook app links in my app because I want when someone opens a path like this www.example.com/users/userid I get the user id in my Android app and I did that but it is still not working in my index.html which should be in www.example.com this is the html prefix http://ogp.me/ns#...
Muhammad
1

votes
1

answer
40

Views

React-Native: gradlew build yields :react-native-fbsdk:lint error “libraries must use the exact same version”

I'm running ./gradlew build after adding facebook-android-sdk and I'm getting the following error. This is both on Windows and Mac, with Gradle 4.10.1. > Task :react-native-fbsdk:lint Ran lint on variant debug: 19 issues found Ran lint on variant release: 19 issues found Wrote HTML report to file://...
mikebridge
0

votes
0

answer
4

Views

Facebook SDK not working in mobile device

So, I have this problem. I'm using Android Studio. I go through a tutorial video on how to implement Facebook SDK in Android Studio. It actually work well, but it's in emulator. When I run the application in my smartphone, it return with some error. I give the error image below. Here is the image wh...
bobby I.
1

votes
1

answer
531

Views

Facebook android, get application stream - Android

I'm currently working with Facebook official SDK for Android. I'm playing around with the advanced example app right now and I don't see how to make it get the applications wall/stream/status instead of the user that logged in. Is this possible and how in that case?
Joakim Engstrom
1

votes
1

answer
157

Views

Is there any Android Facebook SDK or API available?

is there any ANDROID SDK Available for New android application i got one link that not Supporting the link is: https://github.com/facebook/facebook-android-sdk.git Any Other for SDk
user565024
1

votes
3

answer
3.9k

Views

Android: How to post update on Facebook wall automatically?

I want my android application to automatically post a preset message when the user click on a button. The preset message will be set by the user, so I am guessing that is not a violation of Facebook policies. How do I do this?
Rohith Nandakumar
1

votes
4

answer
1.5k

Views

How to post a Msg on Facebook using graph in android without web-view?

After implementation of twitter in my app Now i try to implement Facebook for my app, and I found Facebook SDK for android I use that code for login, but problem is that I want to publish a msg on a buttons click without opening web-view. I found few links on this but no one works for me. I exactl...
Arslan
1

votes
1

answer
3.7k

Views

Facebook does not show the uploaded picture on profile page using android

I am trying to upload a picture from some URL on facebook but it is not posting any image on my wall. whereas when i tried the same code from my friend's account it works fine and upload picture over there. I am using standard facebook sdk and this code is a part of its example named as simple. Kind...
Fool Works
1

votes
1

answer
1.3k

Views

Has anyone succeeded in uploading an image (not a url) via Facebook's SDK?

I am looking all over the place for an end to end *working example of using the Android Facebook SDK to upload an image to a user's wall. I've succeeded in doing this with a link to a web accessible image, but they say it's possible to just submit a byte array, however, when I try this, I just get...
Genia S.
1

votes
2

answer
535

Views

Android Invalid Key error, Facebook SDK

I have created an Android application that uses Facebook SDK to make wall posts. It works fine on devices that don't have the native Facebook App installed, but when it is, it throws an Invalid Key error. I have checked all the settings & keys from my facebook application and my device code twice an...
Harsh Trivedi
1

votes
1

answer
663

Views

FACEBOOK/TWITTER login no longer work on Android app after updating Facebook APK (login disappears immediately!)

I have an App that allows users to log in with their twitter, facebook, and gmail so I can send them updates to each. I just downloaded the newest facebook APK and now I every time I click on the twitter or facebook logins, the login only shows up for a split-second and then disappears. Here's what...
Tommy Devoy
1

votes
1

answer
762

Views

AsyncTask and callbacks Android

I aneed to do login with facebok, for that reason i downloaded sdk and created my method. After i get info that user is logged i need to send this to my web service and do callback to my activity. Here is the code i have. onComplete i tried to explain what i need: Well basically i need callback to...
Streetboy
1

votes
3

answer
1.3k

Views

How to stop AsyncFacebookRunner or stop a request in general?

I have an AsyncFacebookRunner that uploads an image to Facebook. I want to create a cancel button that will stop the download. How can one achieve that? EDIT: This is how I use it: byte[] data = null; ByteArrayOutputStream baos = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPE...
eric.itzhak
1

votes
2

answer
1.3k

Views

Android Facebook integration does not log out

I am developing a Facebook Android integration using the below code, but once I log-in through this app then it does not logout from facebook even if I logout from Facebook app or browser both from my device. So this android app can still post on my Facebook wall. How do I logout from this app if I...
Sachin
1

votes
1

answer
2.8k

Views

SessionStatusCallback cannot be resolved to a type

I'm trying to add facebook login to my native app. I'm following this tutorial https://developers.facebook.com/docs/howtos/androidsdk/3.0/native-login/ but i cannot add SessionStatusCallback() function. I import all of these packages, import com.facebook.Request; import com.facebook.Response; impor...
mutkan
1

votes
1

answer
3.9k

Views

Getting images from facebook album?

i'm creating images viewer app , I want to make it simple and get images from facebook albume 'trick is to let facebook albume acts as a database of images for app' so when I upload new images it's automatically shown in my app ..
Anas Hadedi
1

votes
2

answer
3.4k

Views

Posting using facebook-android-sdk Feed dialog doesn't work

I am using the share button of Android to share something from my application to several other apps (Facebook, Twitter, Dropbox, Gmail etc). For Facebook sharing I have used exactly the method described here: http://www.integratingstuff.com/2010/10/14/integrating-facebook-into-an-android-application...
Panayiotish
1

votes
2

answer
882

Views

App misconfigured - Could not log in to Facebook when official Facebook app is installed

I checked the Hackbook code in Facebook SDK 3.0 - samples and I get the error as if the app is misconfigured, when the official Facebook app is installed. If I delete the official installed Facebook app it works fine. Similarly I have this error for my app too. I have checked the keyhashes in the Fa...
VIGNESH
1

votes
1

answer
1.1k

Views

Implementing oauth in android

I am new to android environment and have been trying my hands on different things in android. I don't know whether this is possible or not, but I want to achieve some sort of functionality as follow: when my app starts, the main activity allows the user to login using facebook or Google. I have use...
user2056245
1

votes
2

answer
1.4k

Views

Publish not working in Facebook SDK 3.0 with proguard

My android app works perfectly when used without Proguard, but when used with Proguard I do get the user_info permission but am not getting the publish_actions permission. I even tried -keep class com.facebook.* -keep class com.facebook.android.* -keep class com.myapp.classcallingfb but this too did...
rahulg
1

votes
2

answer
618

Views

Unrequested user logins with Facebook for Android SDK

The observable behaviour is the following: Open auth activity Login using facebook sdk button Logout (close session) Kill app Open app Open auth activity again Facebook automatically logins the user, just by opening the activity Some code - from the auth activity: // Facebook callback private Sessio...
LightSystem
1

votes
1

answer
2.8k

Views

Android activity not displaying

I have an application which uses official facebook sdk for downloading facebook albums. Recently, I updated my code to incorporate new FB android sdk 3.0. My first activity starts FB authentication, requests friends' list and sends the graph id of the selected friend to second activity using an inte...
Vysakh Prem

View additional questions