facebook-android-sdk

Facebook Android SDK request parameters: where find documentation? [closed]

半世苍凉 提交于 2019-12-06 12:49:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Good evening. I'm developing an android application that uses Facebook SDK. I've no problem with user oauth authentication and I've no problem using the SDK to add a simple status update on the user wall. Now I'm trying to use more deeply this Facebook Android SDK and I found a really big lack about documentation.

Login with Facebook-Android-SDK 3.0 using Shared Preferences/Session

隐身守侯 提交于 2019-12-06 11:21:38
问题 For a long while I was using a login almost identical to the one found in this tutorial until I realized it was deprecated. So like a good developer I decided to try upgrading my login to Facebook Android 3.0 SDK, but as I looked at the documentation I couldn't help but wonder why Facebook would over complicate their login when the old one worked so well. My current code is below , but I'm a bit confused. I used to simply make an authorize request to Facebook, get some info from them, compare

How do I publish a check in to facebook with android SDK

戏子无情 提交于 2019-12-06 11:06:14
问题 The docs are terrible. I want to publish a users check in to facebook. According to the docs creating a checkin object is deprecated https://developers.facebook.com/docs/reference/api/checkin and instead you're supposed to add a post with location data attached. So that's what I'm trying to do. Or maybe i'm supposed to try to publish and open graph story? Anyways here's what I have, it's basically the code to publish a post that is in their SDK sample, the post is created but there is no

Facebook Profile.getCurrentProfile() is always returns null after the first login

Deadly 提交于 2019-12-06 09:04:25
For the first time when I login into the app through Facebook, I'm getting profile from Profile.getCurrentProfile(); Where as when I exit the app and launch again, It was already logged in. So I can call directly Profile.getCurrentProfile(); is returning null. Code @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(R.layout.activity_page); Profile profile = Profile.getCurrentProfile(); // For the first launch the profile will be null displayProfileName(profile); LoginButton

Implementing Facebook login with UiLifecycleHelper

蓝咒 提交于 2019-12-06 08:13:48
问题 I have MainActivity and a LoginActivity . I created a super class FacebookActivity to keep the UiLifecycleHelper object and all of the overriding methods: MainActivity public class MainActivity extends FacebookActivity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); } } LoginActivity (basically a splash screen with facebook login button): public class LoginActivity extends FacebookActivity { @Override

Android app using Facebook login: An active access token must be used to query information about the current user

安稳与你 提交于 2019-12-06 06:54:51
问题 I have integrated Facebook login in my app, but when trying to get the name out of the basic info of the logged in user, I get: { Response: responseCode: 400, graphObject: null, error: { HttpStatus: 400, errorCode: 2500, errorType: OAuthException, errorMessage: An active access token must be used to query information about the current user. }, isFromCache:false } I logged my session token and its expiration date and it is not null nor expired. I tried replacing session with getActiveSession()

React-native fbsdk build errors

耗尽温柔 提交于 2019-12-06 05:16:40
问题 I am getting the following errors while running the command react-native run-android or ./gradlew build :react-native-fbsdk:generateReleaseResValues UP-TO-DATE :react-native-fbsdk:generateReleaseResources :react-native-fbsdk:mergeReleaseResources :react-native-fbsdk:processReleaseManifest :react-native-fbsdk:processReleaseResources /Users/a/projects/gratisapp/node_modules/react-native-fbsdk/android/build/intermediates/exploded-aar/com.android.support/appcompat-v7/25.3.1/res/values-v24/values

Android - Facebook Analytics App Install Event not triggered

限于喜欢 提交于 2019-12-06 04:45:43
问题 Am using Facebook SDK 3.21 for Android and Facebook SDK 3.23 for iOS , and I have an App ID & App Link url. Now my questions are: 1. Is App Install event counts for each fresh install to the same device.? (By fresh install I mean installed once, launched the app & uninstalled it. Again installed and so on) 2. I tried fresh installations for 3 devices; Galaxy S4, Galaxy A7 & Moto X. The App Install event is not getting counted for Galaxy A7 (not listed in filter options). And If I freshly

Android facebook 4.0.0 share dialog does not share the content

痴心易碎 提交于 2019-12-06 03:41:49
问题 For hours I have been trying to share a content in my android app by facebook 4.0.0 sdk. I exactly followed facebook share document but got no result. Share dialog open when I press share button but no content is in it. If I click ok it share an empty string just. Please show me a way to fix this. Edit BTW When I remove Facebook native app from my phone, I can share with webview of facebook. CallbackManager callbackManager; ShareDialog shareDialog; private View rootView; @Override public View

Login callback is not triggered using facebook-android-sdk 4

回眸只為那壹抹淺笑 提交于 2019-12-06 01:37:30
问题 I have an activity for user to login with facebook. I used facebook-android-sdk v4.0.0. But login callback is not triggered when user click on login button. After showing progress bar, start previous activity automatically without showing any error on log instead of triggering login callback. In SignUpActivity, private CallbackManager callbackManager; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_up);