android-facebook

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

百般思念 提交于 2020-01-01 15:25:00
问题 When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored key hash. I have already regenerated key hash and replaced new key on facebook. bUt still did not get result. First time I had easily logged-in, But after logged out again I'm trying to Continues with Facebook but it is showing an error message

Android Facebook Integration Invalid Key hash error on Android device but working fine on Emulator

久未见 提交于 2020-01-01 15:23:45
问题 When I run my Android app in my android device it was working fine when I clicked first time on Continues with Facebook button.When i try to login again after logged out it is showing an error "Invalid Key has" The key has does not match any stored key hash. I have already regenerated key hash and replaced new key on facebook. bUt still did not get result. First time I had easily logged-in, But after logged out again I'm trying to Continues with Facebook but it is showing an error message

Android: Use Glide to load Facebook Photo URL

陌路散爱 提交于 2019-12-25 06:29:39
问题 I'm building an Android app in which I'm trying to let the user bring in photos from Facebook. After I grab the URLs from a GraphRequest, I'm trying to use Glide to load the image into an ImageButton but I keep getting the error D/skia: --- skImageDecoder::Factory returned null . Here's my code: GraphRequest request = GraphRequest.newMeRequest( AccessToken.getCurrentAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse

Facebook login by sdk but post issue

情到浓时终转凉″ 提交于 2019-12-24 13:24:36
问题 This is what my logcat shows as a response { Response: responseCode: 403, graphObject: null, error: { HttpStatus: 403, errorCode: 200, errorType: OAuthException, errorMessage: (#200) The user hasn't authorized the application to perform this action }, isFromCache:false } I'm unable to post to facebook due to this error. What are the steps to authorize the application? 回答1: I guess you need to issue an HTTP POST to that endpoint to publish a new feed story, facebook provides the "method=post"

gradle error DexException after adding facebook library

﹥>﹥吖頭↗ 提交于 2019-12-24 02:59:39
问题 after I added the fb library in the gradle dependences: dependencies { compile 'com.mixpanel.android:mixpanel-android:4.5.2' compile 'com.android.support:multidex:1.0.0' compile 'com.facebook.android:facebook-android-sdk:3.22.0' } I started getting an error on gradle build: dexDebug UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes; thanks 回答1: com.facebook.android:facebook-android-sdk:3.22.0This usually occurs because

Facebook graph api cursor based paging not working in android

主宰稳场 提交于 2019-12-23 22:52:11
问题 I am trying to get all pages url liked by user. I'm able to fetch records using below method, but paging not working. I'm getting same data every time with same before - after cursor token lead to infinite loop. Limit params also not working. Request: final String[] afterString = {""}; // will contain the next page cursor final Boolean[] noData = {false}; // stop when there is no after cursor do { GraphRequest request = GraphRequest.newMeRequest( AccessToken.getCurrentAccessToken(), new

How to get List of Data in Tabbed Actvity?

拜拜、爱过 提交于 2019-12-23 15:29:07
问题 I have made a program in which i am fetching list of all my Facebook Friends with their name, dob and profile picture, but i have decided to use tabs in my existing program therefore, i have also written code for that, but whenever i run my app, every time i am getting tabs but not getting list of friends.. In my case i am not getting FriendsList Activity data in TabSample Class, why? SplashScreen.java:- private final static int FACEBOOK_AUTHORIZE_ACTIVITY_RESULT_CODE = 0; private final

How to send a post to Facebook friend's wall android SDK 3.0

老子叫甜甜 提交于 2019-12-23 12:04:46
问题 I want to post on Facebook friend's wall with (android) Facebook SDK 3.0. How can I do that? 回答1: The Facebook SDK for Android provides a method to let you publish stories from your app to a user's timeline. You can also use this method to post a status update on your user's behalf. This method uses the Graph API, and is an alternative to using the Feed Dialog http://developers.facebook.com/docs/howtos/androidsdk/3.0/publish-to-feed/ 来源: https://stackoverflow.com/questions/15277381/how-to

fb://profile/{userid} seems to be not working

天大地大妈咪最大 提交于 2019-12-23 08:48:29
问题 I try to launch facebook app with specific page , it was working with earlier version of FB APP but with new version that is 25.0.0.19.30 . This functionality is not working , the intent with uri.parse("fb://profile/{userid}") takes me to content not available page . Is it an security update from facebook. any other way to launch the app with particular user page. 回答1: You should use fb://page/{id} Learned it from here: http://binwaheed.blogspot.com.ar/2014/06/android-open-facebook-official

How to opt out from Facebook SDK event logging?

送分小仙女□ 提交于 2019-12-23 06:48:14
问题 I'm using Facebook App Events tracking for Android, but I have no idea how to disable tracking when a user wants to opt out! Does anyone know how to do that? The documentation says: We recommend that you use our SDK tools to offer the opt-out. But they don't actually describe it anywhere. Classic Facebook move. EDIT: Now with the GDPR being in effect for so long, they still don't have any way to disable all tracking until the user consents, do they? 回答1: Don't know about per User, but you can