facebook-android-sdk

Android facebook sdk 3.0 login by custom button

梦想与她 提交于 2019-12-21 23:05:46
问题 Android facebook sdk 3.0 login by custom button. I dont want to use fragment . Just click a button then facebook login fetch the user name ,email,uid and the access token. If facebook login in a dialog box there is no problem. 回答1: 1- add facebook login activity in your AndroidManifest.xml <activity android:name="com.facebook.LoginActivity" android:screenOrientation="portrait"></activity> 2- on button click Intent i = new Intent(this,com.facebook.LoginActivity.class); startActivity(i); This

Post an object of type Reference

。_饼干妹妹 提交于 2019-12-21 19:44:00
问题 I have had this problem for some time now and I have seen others have it as well. It has to deal with posting your custom objects that you create in Open Graph to post with your application. I am having this problem primarily on all platforms, but right now let's say I am using Android. If someone has accomplished this in C# or on IOS or even in PHP please post your answer. An Example: I have an object that posts a meal to Facebook. Let's say its properties are the following. mealName =

Facebook error : allow key: configure your app key hashes at dev.facebook android [duplicate]

假如想象 提交于 2019-12-21 18:01:43
问题 This question already has answers here : This app has no Android Key hashes configured. - Login with Facebook SDK (5 answers) Closed 4 years ago . When i run my facebook apps i get the following error. allow key. Configure your app key hashes at http://developers.facebook.com/apps/178779105632639 ... Any idea? 回答1: It seems that hashkey you generated is not correct. You can generate app hash key from the following code. Try it public static void showHashKey(Context context) { try {

Facebook Login button: apply custom style

本小妞迷上赌 提交于 2019-12-21 09:07:32
问题 i'm facing a strange problem by using new Facebook android sdk 4. With older sdk version i was using: <com.facebook.login.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/fb_button" style="@style/FacebookLoginButton" android:layout_width="485dp" android:layout_height="64dp" android:layout_centerHorizontal="true" android:layout_marginBottom="-17dp" fb:login_text="@string/login_with_facebook" fb:logout_text="Logout" /> FacebookLoginButton section of style

Facebook Login button: apply custom style

断了今生、忘了曾经 提交于 2019-12-21 09:07:28
问题 i'm facing a strange problem by using new Facebook android sdk 4. With older sdk version i was using: <com.facebook.login.widget.LoginButton xmlns:fb="http://schemas.android.com/apk/res-auto" android:id="@+id/fb_button" style="@style/FacebookLoginButton" android:layout_width="485dp" android:layout_height="64dp" android:layout_centerHorizontal="true" android:layout_marginBottom="-17dp" fb:login_text="@string/login_with_facebook" fb:logout_text="Logout" /> FacebookLoginButton section of style

Writing tests for an android app that logs into Facebook: UIAutomator can't fill in text in Facebook's username field

我的梦境 提交于 2019-12-21 06:26:54
问题 From this question/answer I got the idea to use UIAutomator to test my app that requires logging into Facebook. Writing tests for an Android app that logs into Facebook I tried UiObject2 editText = mDevice.findObject(By.clazz("android.widget.EditText")); editText.setText("test@email.com"); As well as other things but whatever I do I can't get it to fill out the field. I used hierachyviewer tool to see that it was an EditText. It's a webview, though, so I don't know. Is this possible? My full

login once and skip login layout everytime app starts after first login

时间秒杀一切 提交于 2019-12-21 05:25:12
问题 I am writing an android application where I want to integrate facebook login using facebook sdk 3.I have tried lots of tutorial but now successful.Can anyone give me a complete guide by which I can achieve following : Login activity: If user logs in once from this activity it will go to home activity.Guess user has logged in for the first time and now on home activity and after few moments user has closed the app. From now every time user starts the app, app will skip the login activity and

Facebook - Post to wall from Android application

笑着哭i 提交于 2019-12-21 04:42:08
问题 Post to wall from Android application... parameters.putString("app_id", mAppId); parameters.putString("picture", "http://fbrell.com/f8.jpg"); parameters.putString("name", "Facebook Dialog"); parameters.putString("caption", "Reference Documentation"); parameters.putString("description", "Dialogs provide simple interface applications..."); parameters.putString("message", "Facebook Dialogs are easy!"); I have specified above parameters and every time I am getting blank dialog (with title "Post

Android: How to get facebook user image using access_token

泄露秘密 提交于 2019-12-21 02:34:27
问题 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

Something similar to Cocoa Pods and Bundler for Android (for dependencies)?

烂漫一生 提交于 2019-12-20 08:47:41
问题 is there anything similar to bundler (ruby) and cocoa pods (ios) for managing dependencies in Android? 回答1: Gradle + Maven Central seems to be the Android equivalent. 回答2: The maven-android plugin provides similar dependency management. If all of the dependencies are in Maven Central, a typically a simple mvn clean install will build your Android project. 来源: https://stackoverflow.com/questions/13771375/something-similar-to-cocoa-pods-and-bundler-for-android-for-dependencies