android-facebook

Android-Facebook SDK: Unable to share photo, dialog not showing

帅比萌擦擦* 提交于 2019-12-03 13:33:32
问题 This is my first time using the Android-Facebook SDK. I am trying to post a bitmap but I keep on getting this message: Warning: Error: com.facebook.FacebookException: Failed to copy image. I am able to post simple links, but not the ones with photos. How should I fix this? Also, one thing I noticed is that the StatusCallback.call() is not being called. public abstract class FacebookReadyBaseActivity extends Activity { private static final String TAG = "FacebookReadyBaseActivity"; private

Facebook login in my android app is working fine in release apk, but not working properly after publishing the same apk on play store

邮差的信 提交于 2019-12-03 13:19:34
问题 In my android application, I used facebook login. It is first time ever I used it. The login functionality is working fine in release apk file. Also, I have generated key hash by using keytool, openssl:- keytool -exportcert -alias "MyAppAlias" -keystore "Path to keystore" | openssl sha1 -binary | openssl base64 I added the generated key hash in App settings on my Facebook developer account. Now when I am generating Signed apk, Facebook login is working fine, but after publishing the same apk

Set Login/Logout Text for Button in Facebook Android SDK 4.0?

馋奶兔 提交于 2019-12-03 09:45:22
My xml looks like this <com.facebook.login.widget.LoginButton xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/fb_login_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:paddingLeft="15dp" android:paddingRight="15dp" android:text="CONNECT WITH FACEBOOK" android:textColor="@color/white" android:textSize="20sp" android:textStyle="bold" android:background="@drawable/button_fb_login"/> and background drawble xml is <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item

Facebook app type no internet connection message

℡╲_俬逩灬. 提交于 2019-12-03 08:52:33
How can I show no internet connection message like in facebook app that appears below the tab view. Aboulfotoh You can design this in your XML file and then set its visibility to invisible like this: <RelativeLayout android:id="@+id/relativelayout_connection" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:alpha="0.8" android:background="@android:color/black" > <TextView android:id="@+id/textView_noInternetConnection" android:layout_width="wrap_content" android:layout_height="wrap

Facebook login in my android app is working fine in release apk, but not working properly after publishing the same apk on play store

断了今生、忘了曾经 提交于 2019-12-03 03:25:11
In my android application, I used facebook login. It is first time ever I used it. The login functionality is working fine in release apk file. Also, I have generated key hash by using keytool, openssl:- keytool -exportcert -alias "MyAppAlias" -keystore "Path to keystore" | openssl sha1 -binary | openssl base64 I added the generated key hash in App settings on my Facebook developer account. Now when I am generating Signed apk, Facebook login is working fine, but after publishing the same apk on Play Store, Facebook login is not working, it's simply redirecting to activity from where it was

Import Facebook SDK on Android Studio 0.5.1

夙愿已清 提交于 2019-12-03 00:14:26
I've been searching around for a while now and tried every answer I could find with no success. I am starting to believe that the problem is in the android studio version. However here is what I've done: 1 - I've downloaded the facebook sdk 2 - Copied the sdk into my libs folder so the project looks like following: MyProj -app --libs ---facebook ----build.gradle (2) --build.gradle (1) -settings.gradle 3 - I modified settings.gradle: include ':libs:facebook', ':app' 4 - I modified build.gradle (1) to: apply plugin: 'android' android { compileSdkVersion 19 buildToolsVersion "19.0.3"

Not able to get the gender in graph api in android

被刻印的时光 ゝ 提交于 2019-12-02 02:52:26
问题 I am not able to get the gender here in OnCompleted function I am able to get other params like id , name , email Currently app is in Dev mode This was working yesterday. Code: GraphRequest request = GraphRequest.newMeRequest( loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse response) { Log.v("LoginActivity", response.toString()); try { AccessToken token = AccessToken.getCurrentAccessToken(); String

Not able to get the gender in graph api in android

二次信任 提交于 2019-12-02 01:56:26
I am not able to get the gender here in OnCompleted function I am able to get other params like id , name , email Currently app is in Dev mode This was working yesterday. Code: GraphRequest request = GraphRequest.newMeRequest( loginResult.getAccessToken(), new GraphRequest.GraphJSONObjectCallback() { @Override public void onCompleted(JSONObject object, GraphResponse response) { Log.v("LoginActivity", response.toString()); try { AccessToken token = AccessToken.getCurrentAccessToken(); String accessToken = token.getToken().toString(); String expiresAt = token.getExpires().toString(); String id =

Facebook onCompleted Email java.lang.NullPointerException

喜你入骨 提交于 2019-12-01 16:33:43
I'm able to get all those things as shown in my code below, but unable to retrieve email from the user profile. What can I do for this? Any kind of help will be appreciated. Earlier I was using this source to get details of Facebook user and was fetching data (including Email) without any trouble: public class MainActivity extends Activity { private Session.StatusCallback sessionStatusCallback; private Session currentSession; private Button login; private Button logout; private Button publishButton; private TextView textView; @Override protected void onCreate(Bundle savedInstanceState) { super

Facebook onCompleted Email java.lang.NullPointerException

醉酒当歌 提交于 2019-12-01 14:33:01
问题 I'm able to get all those things as shown in my code below, but unable to retrieve email from the user profile. What can I do for this? Any kind of help will be appreciated. Earlier I was using this source to get details of Facebook user and was fetching data (including Email) without any trouble: public class MainActivity extends Activity { private Session.StatusCallback sessionStatusCallback; private Session currentSession; private Button login; private Button logout; private Button