facebook-android-sdk

Android facebook api, get diffrent size profile picture

那年仲夏 提交于 2019-12-20 06:48:10
问题 I'm using the relatively new Facebook graph api. I'm getting a list of friends and their profile pics that use the app. I'm not sure how to modify the parameters that I'm sending so that the picture that is returned is large. The default one that's returned currently is to small. I'm using the newMyFriendsRequest. the parms I send it look like this... Bundle parameters = new Bundle(); parameters.putString("fields", "picture,name"); request.setParameters(parameters); request.executeAsync();

Facebook Login for Android getting error for the second login

北慕城南 提交于 2019-12-20 04:38:12
问题 I am very new to facebook sdk and currently I am implementing the Facebook login button and it's work very well at the first time login and when I logged-out and try to login again it's give me an error as bellow image. And I am sure with the Key Hash was corrected. Appreciated for your kindly help. 回答1: Refer this tutorial for integrating facebook sdk in android. link 1 for eclipse link 2 for android studio worked for me. 来源: https://stackoverflow.com/questions/34101848/facebook-login-for

Android Facebook SDK 3.23.0 - FB Login on AndroidTV

吃可爱长大的小学妹 提交于 2019-12-20 03:23:37
问题 Does anyone have any experience using the Facebook SDK to perform Facebook login on AndroidTV? Since it's most often the case that an AndroidTV user won't have the actual Facebook app installed on the AndroidTV device, the Facebook SDK will open a WebView to allow the user to enter his Facebook credentials and login. The issue is the webview that gets displayed doesn't respond to d-pad actions and the fields to enter text don't indicate they are selected. Am I to assume that Facebook login

Fackbook SDK throws Error

允我心安 提交于 2019-12-20 02:26:35
问题 I have downloaded and imported android facebook sdk 3.14. It is throwing over 150 errors. e.g. AppLink cannot be resolved to a type AppLinkResolver cannot be resolved to a type Fragment cannot be resolved to a type etc. I have not even begun implementing the code yet. Can somebody help me out? 回答1: These steps worked for me: Download the facebook sdk from here: https://developers.facebook.com/docs/android/ In Eclipse: Import -> Existing Projects into Workspace Go to the sdk folder location

get user facebook permissions

我怕爱的太早我们不能终老 提交于 2019-12-19 11:49:12
问题 I want to add a facebook permission to my users. That is how I do it: Session.openActiveSession(this, true, new Session.StatusCallback() { @Override public void call(Session session, SessionState state, Exception exception) { if (session.isOpened()) { List<String> PERMISSIONS = Arrays.asList("email"); if (!session.getPermissions().containsAll(PERMISSIONS)) { Session.NewPermissionsRequest newPermissionsRequest = new Session.NewPermissionsRequest(MainActivity.this, PERMISSIONS); session

Android - Clear Facebook access token

不羁岁月 提交于 2019-12-19 11:48:30
问题 I have a SettingsActivity where there are several options including finding Facebook friends and logging out. So when a user chooses to find her Facebook friends, she will be sent to another activity where I let her logging in with her Facebook account and save her access token. And then when she chooses to log out, her access token will be cleared. The problem is, my logout method is not written in the same activity with the one I created the session, so when I tried this: Session session =

Error retrieving email and location from Facebook Request in Android

≯℡__Kan透↙ 提交于 2019-12-19 09:49:48
问题 I am using facebook sdk 3.5 in native Android. This is how i get the id/name of my facebook freinds: private void onSessionStateChange(final Session session, SessionState state, Exception exception) { System.out.println("onSessionStateChanged"); if (session != null && session.isOpened()) { if (state.equals(SessionState.OPENED_TOKEN_UPDATED)) { tokenUpdated(); } else { getUserRequest(session); getFriendsRequest(session); } } else { profilePictureView.setProfileId(null); userNameView.setText(""

Session: an attempt was made to request new permissions for a session that has a pending request

∥☆過路亽.° 提交于 2019-12-19 07:34:44
问题 I want to publish story via Android app and I use a code below. private static final List<String> PERMISSIONS = Arrays.asList("publish_actions"); private static final String PENDING_PUBLISH_KEY = "pendingPublishReauthorization"; private boolean pendingPublishReauthorization = false; private UiLifecycleHelper uiHelper; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); uiHelper = new UiLifecycleHelper(XXActivity.this, callback); uiHelper.onCreate

Unable to post an image from drawable to facebook

对着背影说爱祢 提交于 2019-12-19 03:45:21
问题 I am trying to pass an image from the drawables folder to the feed dialogue. But I am unable to view the image in facebook feed dialogue. Rest of the parameters are available. I am using facebook SDK 3.5. Here is the function for showing feed dialog. private void publishFeedDialog() { Bitmap bitmap = BitmapFactory.decodeResource(this.getResources(),R.drawable.ic_launcher); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);

Facebook Account Kit Collision with Google play services gradle

大城市里の小女人 提交于 2019-12-18 21:16:12
问题 After configuring account kit sdk as compile 'com.facebook.android:account-kit-sdk:4.+' and gradle sync it conflict with com.google.android.gms gradle as mixing versions can lead to runtime crashes and my app crash as Firebase API initialization failure. java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.google.firebase.FirebaseApp.zza(Unknown Source) at ... the above error is due to mixing google play services gradle (I think Google play