facebook-android-sdk

Getting invalid android_key parameter error, after first time login in Facebook Android SDK

纵饮孤独 提交于 2019-12-03 12:40:46
问题 I have got the hash key from my debug store using keytool -exportcert -alias androiddebugkey -keystore C:\Users\user.android\debug.keystore | openssl sha1 -binary | openssl enc -a -e and pasted the key to Facebook App for Android and also enabled "Facebook Login" option. When I first time log into my Android App, it shows me a permission dialog and after giving the permission, I am enable to get me details from Facebook. But after that when i exit and the app and again open and try to login,

How to get FB User ID using Facebook Login Button in android application

你说的曾经没有我的故事 提交于 2019-12-03 12:15:22
问题 I'm developing an application in which I'm using Facebook log in button from SDK. I'm able to get access_token of the user but I want userID too. I have tried almost everything but was not successful. I have used facebook tutorial for achieving that. Here is the link: Facebook Login Button Please help me in getting userID from the same login button. Any kind of help will be appreciated. 回答1: After successful login, you need to call following code. You can get the logged-in user details with

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

Android facebook sdk does not call callback after login

て烟熏妆下的殇ゞ 提交于 2019-12-03 09:25:32
Help, I am trying to make a class that handles facebook login in my application. My problem is it doesnt work on all activity. On that activity it doesnt call the callback. After the login and authorize application webview is dismiss, the callback doesnt fire. the last state that printed in Logcat is OPENING Here is my code: public void doLogin() { if ((Session.getActiveSession() == null || !Session.getActiveSession().isOpened())) { List<String> permissions = new ArrayList<String>(); permissions.add("email"); // start Facebook Login openActiveSession(activity, true, new Session.StatusCallback(

news feed from facebook wall to a android app

江枫思渺然 提交于 2019-12-03 09:06:17
There is any way to get the last post's made on a facebook wall into a Android app? I want to make some like a RSS reader to get some information on the app. To explain better- I have a page on facebook about one football club and there I post several information about news, games etc. Now I have made an android app and my question is whether I can import the post into the android application? Sahil Mittal Of course, you can. First of all, if you are new to facebook integration- read the basics of the android integration, login/authorization calling its APIs etc. (not complex at all). Facebook

Android: How to get facebook user image using access_token

半城伤御伤魂 提交于 2019-12-03 08:53:46
I am working on an application that need to login with facebook . This is the first time when i am integrating Fb API in my application. I have start from Getting Started with the Facebook SDK for Android & successfully get fb access_token . There are three Activitie in my application & what i need to manage is to have logged in user's Profile Image & name on all these Activities when user successfully get login using facebook. I know, i can query fb GraphAPI & get complete profile data of current logged-in user using access_token. I succeed to get profile data of user by using valid access

Can't relogin with Facebook credentials after logout

試著忘記壹切 提交于 2019-12-03 08:43:28
I have an Android application that allow users to login with their Facebook credentials. Once they logout for the first time, they can't login again. After clearing the application's permission from the Applications page in user settings on Facebook's website, logging in works correctly. I use a LoginButton to login. Activities that need to be able to access the login information, extend this AuthActivity Activity. public class AuthActivity extends Activity { private AuthUtils authUtils; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Custom Facebook login button image in Facebook Android SDK 3.5

时光怂恿深爱的人放手 提交于 2019-12-03 07:58:35
问题 In a similar vein to this queston related to Facebook Android SDK 3.0 ... Is it possible to use my own image for the Facebook login button in SDK 3.5, without customising the SDK itself? Using the answer given in the linked question: <com.facebook.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/login_button" android:layout_width="249dp" android:layout_height="45dp" android:layout_above="@+id/textView1" android:layout_centerHorizontal="true" android

App crashes after first Facebook Login

南楼画角 提交于 2019-12-03 07:13:44
Sometimes (not very frequently) my android app crashes after first logging to facebook using Facebook Login (Facebook SDK version 3.5). I'm getting exception: java.lang.RuntimeException: Unable to resume activity {my.app.package/com.facebook.LoginActivity}: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=64206, result=0, data=null} to activity {my.app.package/com.facebook.LoginActivity}: java.lang.NullPointerException with 2 different root exceptions: Sometimes with: java.lang.NullPointerException at com.facebook.AuthorizationClient.startOrContinueAuth

Facebook SDK 3.8 : permission publish_actions not returned

杀马特。学长 韩版系。学妹 提交于 2019-12-03 03:02:26
I'm following the facebook android sharing tutorial by facebook ( https://developers.facebook.com/docs/android/share ). The app runs fine and I can login with facebook an click on the demo share button. So this is the procedure of my app: Login with facebook The facebook session object gets updated and the following permissions are saved within the session object: user_likes, user_friends, user_status, basic_info Now, I want to share something. Therefore the user clicks on a share button and a request for an additional permission called publish_actions is made The following code performs this