facebook-android-sdk

Package name & Class Name of facebook app

佐手、 提交于 2019-12-18 19:38:07
问题 Just a small confusion I want to ask while making a facebook app to implement share feature in my android app Unique app Identifier used to open your app Package Name: Is it that unique identifier that I have written while creating the new facebook app at their developer console ? or Is it the package name of my android app ? The Main Activity you want Facebook to launch Class Name: I have added a facebook share button in every fragment(class), so which class is the Main Activity that it want

Is it possible to extend Facebook tokens with extendAccessTokenIfNeeded in an Android app?

假如想象 提交于 2019-12-18 11:01:52
问题 I think this might effect a lot of Facebook/Android developers and yet there does not seem to be that much discussion on the topic... My question Has anyone successfully refreshed a token using the extendAccessTokenIfNeeded function? If you did have success, what version was the device (or emulator) running? Background I received an email from Facebook saying the offline_access permission will be deprecated from May 1st 2012 and Facebook recommended upgrading to their latest SDK. Fine. I

How to solve Facebook tools:replace=“android:theme”?

烈酒焚心 提交于 2019-12-18 10:59:06
问题 I have compile 'com.facebook.android:facebook-android-sdk:4.16.0' My manifest: <manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ... <application android:name=".YandexProvider" android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AutoTheme" tools:replace="android:theme"> How to solve compile error: Error:Execution failed for task ':app:processDebugManifest'. >

Android: Facebook get “User Access Token”, on successful login

[亡魂溺海] 提交于 2019-12-18 10:49:12
问题 I have been doing some login project via Facebook latest SDK i.e. 3.0. I'm getting a hard time in getting user access token. I have searched on the internet and all, maximum results were using the old SDK. Here is some bits of code which I have taken from Facebook Android SDK Tutorial: public class LoginActivity extends Activity implements OnClickListener { Button login; TextView accessToken; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Android - Facebook SDK 3 - How to login programmatically without LoginButton

爷,独闯天下 提交于 2019-12-18 10:32:40
问题 I am writing an app that integrates with Facebook SDK, to share some (string) content as a wall post. Now, I made the HelloFacebookSample work. However It uses their LoginButton to log the user in. I don't want that. All I want to do is click my share button in the actionbar and share it to facebook. Therefore I want to login programmatically, I tried to emulate what the LoginButton does but no success so far. I get 12-06 15:34:33.180: E/AndroidRuntime(19493): java.lang

Creating a class for Facebook SDK 3.0 on Android

笑着哭i 提交于 2019-12-18 09:50:49
问题 Is it possible to create a class to encapsulate the Android SDK on android? i.e - I don't want to clutter my activity with all the FB sessions and stuff, I want to have a class that I can call and it will do the job. For example, FacebookSDK sdk = new FacebookSDK(); sdk.publish(); For now I couldn't find a way to do this, without using Fragments or cluttering my activity with the facebook code. Many Thank! 回答1: In short, no. Your activity needs to be notifying the Facebook SDK of lifecycle

Getting email address by using Facebook SDK 3.0.1 for Android

你说的曾经没有我的故事 提交于 2019-12-18 07:19:55
问题 I'm currently developing an application which aims to authenticate any user by using Facebook acoount. I have a trouble in getting user email from user's account. My code is below private void signInWithFacebook() { SessionTracker mSessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() { public void call(Session session, SessionState state, Exception exception) { } }, null, false); String applicationId = Utility.getMetadataApplicationId(getBaseContext()); Session

Getting email address by using Facebook SDK 3.0.1 for Android

女生的网名这么多〃 提交于 2019-12-18 07:19:09
问题 I'm currently developing an application which aims to authenticate any user by using Facebook acoount. I have a trouble in getting user email from user's account. My code is below private void signInWithFacebook() { SessionTracker mSessionTracker = new SessionTracker(getBaseContext(), new StatusCallback() { public void call(Session session, SessionState state, Exception exception) { } }, null, false); String applicationId = Utility.getMetadataApplicationId(getBaseContext()); Session

Android Facebook session issue

独自空忆成欢 提交于 2019-12-18 04:20:26
问题 I have used following code for Facebook authentication and it is working fine, but when I have cancelled the authentication and tried to authenticate again the app crashed and the log was Caused by: java.lang.UnsupportedOperationException: Session: an attempt was made to open an already opened session. On debug I got like this {Session state:CREATED, token:{AccessToken token:ACCESS_TOKEN_REMOVED permissions:[]}, appId:xxxxxxxxxxxxxxx} How can I solve this issue.Please help me.Thanks in

Android facebook login not working with installed Facebook app

你离开我真会死。 提交于 2019-12-18 02:40:46
问题 I have set up simple facebook login. For Android 2.3.6 everything works as should, user gets prompt login dialog, enters data and app goes on. I thought that it was android versions fault but it turs out that the login isn't working when there is facebook application installed on the phone! Tested this on: Galaxy Ace 2.3.6 HTC Desire 4.1.2 Galaxy Note 4.1.2 Android emulator 4.1.2 Even the facebook samples are not working! Every time the app is executing - else { Log.d("SESSION NOT OPENED",