facebook-android-sdk

Android : Failed to find provider info for com.facebook.wakizashi.provider.PlatformProvider

最后都变了- 提交于 2020-01-11 04:00:06
问题 I am stuck for days now. I am using the PhotoShareDialogBuilder in facebook. I used the content provider something like this : <provider android:authorities="com.facebook.app.NativeAppCallContentProvider*****************" android:name="com.facebook.NativeAppCallContentProvider" android:exported="true"/> But, it gives me the error whenever the code gets executed. Someone please help me out. I don't want to use any other api like simple facebook etc. The error i receive in the logcat is : 09-06

Facebook AccessToken.getAccessToken is null on opening of app even after first login

断了今生、忘了曾经 提交于 2020-01-10 02:44:07
问题 I have integrated latest Facebook android sdk (Sdk 4.0). This is the code I have added in my onCreate method. FacebookSdk.sdkInitialize(this.getApplicationContext()); callbackManager = CallbackManager.Factory.create(); if(AccessToken.getCurrentAccessToken()!=null){ Log.d(FBTAG,"facebook already logged in"); isFBLogin = true; } LoginManager.getInstance().registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { // App

Facebook error : application ID is invalid

吃可爱长大的小学妹 提交于 2020-01-07 04:06:09
问题 Hey i get this error using the SDK though the app ID is correct. Now when i try to authorize the app, it works fine and authorizes it, but when i try and make requests, facebook returns this error. My app is initlized properly and is not in sandbox mode. I found No info about this problem, does someone know what can cause this? I'm trying to upload photo using The following code : byte[] data = null; Bitmap bi = BitmapFactory.decodeFile(photoToPost); ByteArrayOutputStream baos = new

Android: Facebook PublishPermissions without retyping password (when using SUPPRESS_SSO)?

隐身守侯 提交于 2020-01-06 22:54:44
问题 The flow of action on this android app is - UserX registers on facebook UserX grants read_permissions UserX grants publish_permissions His access_token is stored in our database. UserX logs out UserY registers ... [follows same steps] Since it requires login of multiple users I need to SUPPRESS_SSO (thanks to How to disable Single SIgn On for facebook android app?). Now in facebook API 3.0, Facebook has made ReadPermissions and PublishPermissions different. I am succesfully asking for both

Android: Facebook PublishPermissions without retyping password (when using SUPPRESS_SSO)?

孤街浪徒 提交于 2020-01-06 22:53:32
问题 The flow of action on this android app is - UserX registers on facebook UserX grants read_permissions UserX grants publish_permissions His access_token is stored in our database. UserX logs out UserY registers ... [follows same steps] Since it requires login of multiple users I need to SUPPRESS_SSO (thanks to How to disable Single SIgn On for facebook android app?). Now in facebook API 3.0, Facebook has made ReadPermissions and PublishPermissions different. I am succesfully asking for both

How to stop AsyncFacebookRunner or stop a request in general?

三世轮回 提交于 2020-01-05 20:24:00
问题 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.JPEG, 100, baos); data = baos.toByteArray(); Bundle params = new Bundle(); params.putByteArray("picture", data); AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook); mAsyncRunner

facebook-android-sdk error: publish_actions being required to post a share dialog

安稳与你 提交于 2020-01-04 05:33:15
问题 I have required publish_actions to my application in order to publish in users wall, but it was denied because (it was said) Facebook does not require publish_actions. But I am trying to share a picture through the following code using Share Dialog: SharePhoto photo = new SharePhoto.Builder() .setBitmap(bitmapLogoPhoto) .setCaption("Teste") .build(); SharePhotoContent photoContent = new SharePhotoContent.Builder() .addPhoto(photo) .build(); //shareDialog.show(photoContent, ShareDialog.Mode

Can not access Facebook friends via Android application

时光总嘲笑我的痴心妄想 提交于 2020-01-02 03:30:21
问题 I have a problem with accessing the graph API through my android application that retrieves a user's friends as JSONObject, extracts their names and displays them on the screen. It is supposed to be a simple and straightforward task but apparently it is not. When I run my application on Android Nexus I, I login to Facebook, then I am asked I click "Allow" button to grant permissions and I am redirected to a blank page. I am expect to see the name of my friends but it does not happen. Could

Facebook login not working if Facebook native application installed in device?

懵懂的女人 提交于 2020-01-01 11:57:06
问题 I am working on android Application. when facebook native application installed it does not work and show only two popup. but if itis not installed it redirect to facebook website and works fine .How i can resolve this . any help will be appreciated. I have checked and added all hashkey in facebook app. but still not working . statusCallback = new SessionStatusCallback(); Session session = Session.getActiveSession(); this.isLogin = isLoginUser; session = null; if (session == null) { if

Retrieve profile picture using Facebook SDK 3.0 for Android

℡╲_俬逩灬. 提交于 2020-01-01 07:52:28
问题 I've following problem with Facebook SDK 3.0 for Android. I wanna get my (and my friends) profile picture without using their ProfilePictureView widget, so if I use Graph Explorer I see that Json response is: { "data": { "url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash4/372127_1377011138_1538716206_q.jpg", "is_silhouette": false } } I need that "url" path to download and show the picture, but with the following code: Request.executeGraphPathRequestAsync(Session.getActiveSession(),