facebook-android-sdk

Android Facebook Login in non Activity Class

主宰稳场 提交于 2019-12-11 08:07:37
问题 Is it possible to do a Facebook Login in Android in an non-Activity class? I have an activity which loads different "Setting Classes" for Social Media Logins etc. One of them is Facebook. This is a non Activity class which loads my Facebook-Settings.xml. There are some Switch Buttons etc. Save switch button status is working. I have also integrated the Facebook Login Button. But it seems the onSuccess is not called What am I missing or doing wrong here? Is it even possible to login to

Get a Facebook Page's public posts without an auth token

不打扰是莪最后的温柔 提交于 2019-12-11 07:46:53
问题 Is it possible (using the facebook graph API) to get the last 5 posts made by a Facebook Page? I would like to display this information in an Android app and want to avoid the overhead of using the Facebook Android SDK to avoid showing the " [App] would like to access your public profile and friend list " message because it's annoying and inaccurate. The following call works without an auth token for example: https://graph.facebook.com/nike But this one doesn't: https://graph.facebook.com

Signed apk crashes with facebook login

眉间皱痕 提交于 2019-12-11 07:20:17
问题 My Signed apk crashes first time on facebook login with this error: AndroidRuntime: FATAL Exception: main com.facebook.aq: com.facebook.c.f got an unexpected method signature: public abstract com.facebook.c.c com.facebook.c.c.a(java.lang.Class) However, it works fine with 2nd attempt login. I am using Facebook-android-sdk-3.6.0. I've checked here too - Android Facebook application crashes when using a hash key other than the debug hash key, but didn't find any solution. Do anyone faced the

How to tag friends in a wall post using facebbok sdk in android?

拟墨画扇 提交于 2019-12-11 06:22:28
问题 I am trying to tag one friend in my wall post. But this 'tags' parameter isn't working. How can i tag one/more friends? Pls help me. Thank you in advance. Bundle params = new Bundle(); params.putString("tags", tagged_friends_id); WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this, Session.getActiveSession(),params)) .setOnCompleteListener(new OnCompleteListener() { @Override public void onComplete(Bundle values, FacebookException error) { if (error == null) { final String postId =

Facebook Login for Android Studio library import dx.bat Failed

非 Y 不嫁゛ 提交于 2019-12-11 04:49:39
问题 I'm currently trying to import the facebook libraries on my project by following this steps from facebookdevelopers wherein they provided a step by step process on how to add the facebook library. Everything goes smoothly until I run my project and got the error: Gradle: Execution failed for task ':Echo:dexDebug'. > Running C:\Program Files (x86)\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat failed. See output I'm sure that I followed the steps but I think something is not going

Facebook Like Button in Android app?

家住魔仙堡 提交于 2019-12-11 04:47:35
问题 There are a few other old SO questions asking a similar question, but there doesn't seem to be any definitive answer for them. Some time has passed since those questions were asked, so I was wondering if there was a way to do this yet? Looking at Facebook's Android SDK, there are examples on how to share things on your wall, post pictures to your wall, login, logout, etc... but it there doesn't appear to be anything about adding a simple Like button... I was expecting to be able to add a Like

Facebook integration android support v4 content localBroadcastManager

故事扮演 提交于 2019-12-11 04:47:22
问题 Im trying to deal with a facebook integration login for my simple android application. Im following this guide https://developers.facebook.com/docs/getting-started/facebook-sdk-for-android/3.0/ and everthing seems to go fine, but am still gettin exception: java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager I know there are alot similar questions about this problem like this java.lang.ClassNotFoundException after changing nothing in the project but upgrading

Cordova Android Build Failure: Configuration with name 'debug' not found

丶灬走出姿态 提交于 2019-12-11 04:35:32
问题 After adding the phonegap-facebook-plugin to my Cordova project, and building the project for android, it fails with the error: Cannot evaluate module FacebookLib : Configuration with name 'debug' not found My android project structure looks like this: android --> CordovaLib --> build.gradle --> phonegap-facebook-plugin --> chooze-FacebookLib --> build.gradle --> build.gradle --> settings.gradle The root build.gradle file contains this: dependencies { compile fileTree(dir: 'libs', include: '*

Generate AAR file with all dependencies

坚强是说给别人听的谎言 提交于 2019-12-11 04:17:20
问题 I am facing problems in generating AAR file with all the dependencies required. Following is the configuration for build.gradle: apply plugin: 'com.android.library' android { compileSdkVersion 25 buildToolsVersion '25.0.3' defaultConfig { minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "3.5.0" multiDexEnabled true testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard

Why is my facebook session still valid after I am logged out?

旧城冷巷雨未停 提交于 2019-12-11 03:48:08
问题 My logout code: if(fb.isSessionValid()){ masyncfb.logout(this, new RequestListener() { @Override public void onComplete(String response, Object state) { Log.d(TAG, "Logging you out: "+response); } @Override public void onIOException(IOException e, Object state) {} @Override public void onFileNotFoundException(FileNotFoundException e, Object state) {} @Override public void onMalformedURLException(MalformedURLException e, Object state) {} @Override public void onFacebookError(FacebookError e,