android-facebook

Do any widely used Android apps have Facebook sharing with pre-populated text field?

这一生的挚爱 提交于 2019-12-23 04:53:53
问题 I'm creating an Android app for a small business owner. I've implemented social sharing with a ShareActionProvider, and I have discovered that Facebook purposely does not allow apps to pre-populate posts. The user must enter their own text. (See this S.O. post and then this S.O. post ). Multiple S.O. answers have indicated that by using the Facebook SDK, it is possible to achieve this result (pre-populating Facebook posts). On the other hand, I learned that Facebook has [https://developers

Android - Facebook SDK - how to tell if user changed password or removed app from app settings on Facebook

若如初见. 提交于 2019-12-22 13:07:32
问题 I was testing our app using test cases from Facebook's developers site. https://developers.facebook.com/docs/facebook-login/testing-your-login-flow Our app failed two following test cases: Someone removes your app from Facebook via app settings and revisits your app. Your app should detect this and prompt the person to log back in. Go to your app and tap on the "Log in with Facebook” button Tap OK to accept the read permissions (and OK again to accept write permissions where applicable) Go to

Share an image with a content provider in Android app

这一生的挚爱 提交于 2019-12-22 04:01:25
问题 I'm developing an Android app that is a gallery of images in which the images are downloaded from internet for display on the screen of smathphone. Images are displayed one at a time and the application has a button to share the image that is displayed. Following the directions I've found in some StackOverflow post which indicated that the right way to share an image was using a ContentProvider I have implemented the following code that works to share the images of certain applications (eg

INSTALL_FAILED_CONFLICTING_PROVIDER with Facebook SDK when I build multiple productFlavors

时光总嘲笑我的痴心妄想 提交于 2019-12-21 12:16:00
问题 I'm building an Android app with multiple productFlavors , and using Facebook SDK v4.1 for login and sharing contents. The problem is that when I try to install an app on a device which already has the same app installed (but different flavor), it raises an error. It doesn't allow me to install the second app unless I uninstall the existing one. <provider android:authorities="com.facebook.app.FacebookContentProvider{my_app_id}" android:name="com.facebook.FacebookContentProvider" android

The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files, Facebook [duplicate]

放肆的年华 提交于 2019-12-21 06:04:31
问题 This question already has answers here : ActionBarSherlock - The type android.support.v4.app.Fragment cannot be resolved. It is indirectly referenced from required .class files (9 answers) Closed 5 years ago . i want to publish photo and text in facebook, for that i have used below code from the facebook reference site https://developers.facebook.com/docs/android/link-to-your-native-app/#step6 i have copied all the code in my activity so code but in below line i am getting error Session

Android How to like a post with facebook 3.0 sdk

房东的猫 提交于 2019-12-21 05:03:17
问题 I want to implement "Like" option in my Android app, but I don't know which Request to use. I have a valid facebook Session opened and the ID post I want to like. How can I implement this function? Thanks 回答1: I found a solution. To like post I've implemented a simple POST request using likes connection of facebook post id. This is the code: Request likeRequest = new Request(Session.getActiveSession(), fBPostId + "/likes", null, HttpMethod.POST, new Request.Callback() { @Override public void

Facebook app type no internet connection message

夙愿已清 提交于 2019-12-21 02:52:05
问题 How can I show no internet connection message like in facebook app that appears below the tab view. 回答1: 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

Android: Facebook get “User Access Token”, on successful login

[亡魂溺海] 提交于 2019-12-18 10:49:12
问题 I have been doing some login project via Facebook latest SDK i.e. 3.0. I'm getting a hard time in getting user access token. I have searched on the internet and all, maximum results were using the old SDK. Here is some bits of code which I have taken from Facebook Android SDK Tutorial: public class LoginActivity extends Activity implements OnClickListener { Button login; TextView accessToken; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

Creating a class for Facebook SDK 3.0 on Android

笑着哭i 提交于 2019-12-18 09:50:49
问题 Is it possible to create a class to encapsulate the Android SDK on android? i.e - I don't want to clutter my activity with all the FB sessions and stuff, I want to have a class that I can call and it will do the job. For example, FacebookSDK sdk = new FacebookSDK(); sdk.publish(); For now I couldn't find a way to do this, without using Fragments or cluttering my activity with the facebook code. Many Thank! 回答1: In short, no. Your activity needs to be notifying the Facebook SDK of lifecycle

Android Facebook SDK: Key hash does not match any stored key hashes when uploading google play

末鹿安然 提交于 2019-12-17 21:51:49
问题 My app uses facebook api for user login. On developing it works fine, but when I uploaded it to google play it stops working. This is the error log: 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): Exception during service 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): com.facebook.http.protocol.ApiException: Key hash XXXXXXX does not match any stored key hashes. 12-10 20:20:02.488: W/fb4a(:<default>):BlueServiceQueue(17284): at com.facebook.http.protocol