facebook-android-sdk

Using facebook.authorize with the Android SDK does not call onActivityResult

徘徊边缘 提交于 2019-11-30 19:51:34
问题 I'm trying to call the Facebook authorization from my Android activity, but for some reason it never calls the onActivityResult as it should. I followed the official tutorial, and I even created a very simple application just in order to try this functionality: public class SimpleFacebookActivity extends Activity { private EditText console; private Facebook facebook = new Facebook(APP_ID); @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Created New Facebook Application for Android publish permission not working.Used Facebook sdk 3.14.xx and samples

孤街醉人 提交于 2019-11-30 19:12:00
问题 I am using facebook sdk 3.14(latest updated sdk) and created application for android platform like other old applications which i have added same options and everything. i want to use share photo feature for that I am using below code to add publish_actions permission. but permission is not getting updated or granted. ** I have checked with other old application which i have created last month which is working fine with same code photo sharing and all is working , permissions also getting add

Protecting app secret for extendAccessToken usage

老子叫甜甜 提交于 2019-11-30 19:10:06
问题 I'm developing for Android and currently use facebook-android-sdk for authentication. From what I can see there is no use of the app secret in that code which is great. Now that Facebook are going to remove the offline_access permission I need to extend the access token. Unfortunately the sdk's extendAccessToken method isn't stand alone and requires the official Facebook application to be installed which is unacceptable for me. So I decided to implement extendAccessToken directly (similar to

Why doesn't Android Facebook interface work with Fragments?

烈酒焚心 提交于 2019-11-30 19:05:32
问题 I'm switching some Android Facebook code from an Activity to a Fragment . Prior to the switch everything worked fine, but now the onComplete() callback is not being executed. Does the Facebook code not work with Fragments , or am I doing something wrong? Here's the original code (in a SherlockActivity ): if (!mFacebook.isSessionValid()) { mFacebook.authorize(MyActivity.this, permissions, new DialogListener() { @Override public void onComplete(Bundle values) { ... } // CALLED AS EXPECTED } }

Facebook Account Kit Collision with Google play services gradle

筅森魡賤 提交于 2019-11-30 18:30:27
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 services gradle may be used by Facebook Account Kit SDK) because I have same version for all Google play

Facebook android shareDialog closes after opening

二次信任 提交于 2019-11-30 17:36:40
Following THIS I'm using facebook sdk in my android application and for test I've added below code to my MainActivity: CallbackManager callbackManager; ShareDialog shareDialog; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); FacebookSdk.sdkInitialize(getApplicationContext()); setContentView(R.layout.activity_main); callbackManager = CallbackManager.Factory.create(); shareDialog = new ShareDialog(this); if (ShareDialog.canShow(ShareLinkContent.class)) { ShareLinkContent linkContent = new ShareLinkContent.Builder() .setContentTitle("Hello

Share text and Image together using Facebook SDK in Android

删除回忆录丶 提交于 2019-11-30 15:39:42
I'm using facebook SDK for share text and image in Android.I have used following code and its working for share text but how to share image together.I'm so confused about this.If any know please suggest me. Code: public class MainActivity extends Activity { Facebook facebook = new Facebook("App ID"); EditText edittext; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); edittext = (EditText) findViewById(R.id.revieew); facebook.authorize(this, new DialogListener() { @Override public void onComplete(Bundle

Facebook new sdk - not able to get friends list

☆樱花仙子☆ 提交于 2019-11-30 14:25:19
问题 I am using the new Facebook-sdk and using the hackbook example to get the list of friends using FriendsList.java file. The Friendlist Activity gets killed everytime and I am getting this error in the logcat: 11-18 16:20:51.141: ERROR/JavaBinder(7881): !!! FAILED BINDER TRANSACTION !!!. The issue is reproducible everytime. Note number of friends in the profile are 4500. 11-18 16:19:27.932: DEBUG/Facebook-Util(7881): GET URL: https://api.facebook.com/restserver.php?access_token=**********&query

Android Facebook SDK 3.0 auth

我只是一个虾纸丫 提交于 2019-11-30 14:09:12
问题 I'm actually following SessionLoginFragment.java example from facebook sdk samples. What I really don't understand is this: when I make session.openForRead(new Session.OpenRequest(fragment).setCallback(statusCallback)); to log my user to facebook and ask basic read permission (just to test the integration) it simply does not work. I digged a bit with the debugger and I followed the path. If you don't put a requestCode to the OpenRequest of the session it will give it a random one (and this is

facebook android sdk -user email returns null

白昼怎懂夜的黑 提交于 2019-11-30 13:33:10
问题 I am having the following code that signin the user to facebook through my app. I am getting user.getproperty("email") as null first time. when i run the app second time i am getting the value. below is my code. private void loginToFb() { final Session.NewPermissionsRequest newPermissionsRequest = new Session.NewPermissionsRequest( LandingPageActivity.this, Arrays.asList( "user_location", "user_birthday", "user_likes", "email")); Session.openActiveSession(this, true, new Session