android-facebook

Why My android app crashes as soon as I open it in device 4.4.3 but not in device 5.0 or above

不想你离开。 提交于 2019-12-13 08:59:42
问题 I have used facebook sdk for log in with facebook and also google map for user current position. It run well in android 5.o or above but crashes in android 4.4.3. I have used following configuration. android { compileSdkVersion 24 buildToolsVersion "24.0.0" defaultConfig { applicationId "com.example.nuevo.getsocial" minSdkVersion 15 targetSdkVersion 24 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(

Friends profile picture is not matching with the profile name for facebook in android

╄→гoц情女王★ 提交于 2019-12-13 05:19:07
问题 i am getting friends names,birthdays and profile pictures from Facebook.and I am displaying in listview but profile pictures is not matching with there names. I tried below code: public void onComplete(String response, Object state) { Log.v("", "FriendListRequestONComplete"); friendData = response; Log.v("friendData--", ""+friendData); //Create method to run on UI thread MainActivity.this.runOnUiThread(new Runnable() { @SuppressLint("NewApi") public void run() { try { //Parse JSON Data //

List of all Upcoming Facebook Friends Birthdays in Android

久未见 提交于 2019-12-13 03:36:05
问题 How to get Facebook Friends Birthdays in order of upcoming like: show top on list those birthdays are coming next by using current date and so on. still i am getting birthdays in form of January to December, Getting Friends on Top those birthdays in January and on bottom those birthdays in December. and i am also getting friends on top those birthdays has gone in January like birthday was on 2nd Jan or 28 Jan , Now i just want to see list of Next Upcoming Birthdays ,those passed away on

Share dialog returns exception with “failed to generate preview for user facebook”

守給你的承諾、 提交于 2019-12-12 19:43:31
问题 I have switched to use the newly updated Facebook SDK for Android. The above message was given in an FacebookException class when I tried to use the new Share Dialog. Any reason why this happens? Here's the code I'm using. OpenGraphAction action = GraphObject.Factory.create(OpenGraphAction.class); action.setProperty("object", "http://object.url"); FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(this, action, "appnamespace.action", "object") .build(); uiHelper

Error uploading photos using Facebook SDK

做~自己de王妃 提交于 2019-12-12 18:33:36
问题 This is a similar problem to Intermittent SSL error when uploading photos using Facebook Android SDK 3.0 but that question has no responses and I'd like to provide more detail in the question. I'm attempting to upload photos to a user's Facebook account using the following code: ArrayList<Request> requests = new ArrayList<Request>(); for (String id : ids) { Uri uri = Uri.withAppendedPath(MediaStore.Images.Media.EXTERNAL_CONTENT_URI, id); Bitmap b; try { b = MediaStore.Images.Media.getBitmap

Facebook SDK 3.0 with old Facebook app version redirects to browser and gets stuck

五迷三道 提交于 2019-12-12 08:54:25
问题 I have in my app a FB AuthButton that is doing the connection to FB process I have a device that is running an old version of the FB app (version 1.8.3 - 1.8.4). when I click on the login button, the process doesn't start the native app, but calls the browser to finish the process. In the logs, I see those logs: 06-16 12:26:00.709: E/ActivityThread(21597): Failed to find provider info for com.facebook.katana.provider.AttributionIdProvider 06-16 12:26:03.321: E/Tab(21678): onReceivedError -10

How to share Text and Image on Facebook using Intent

。_饼干妹妹 提交于 2019-12-12 08:09:08
问题 How to share Text and Image on Facebook, I am writing a Church Application in which i want to allow user to share text and image along with URL. I am able to share online app link but not able to share text & image, where i am missing ? my code looks like this: Button btnFbSharing = (Button) findViewById(R.id.fbSharing); btnFbSharing.setOnClickListener(new OnClickListener() { @Override public void onClick(View arg0) { // TODO Auto-generated method stub Intent shareIntent = new Intent(android

How Can I Fetch Name and Email using Facebook SDK 4?

情到浓时终转凉″ 提交于 2019-12-12 06:15:25
问题 I am using Facebook SDK 4 ,I had Do this before sdk 2... but for me some syntax has changed so I had faced some problem... I'm not able to fetch username,email This is my XML File <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:facebook="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <com.facebook.login.widget

Facebook friend invitation request doesn't display the message

一个人想着一个人 提交于 2019-12-12 05:05:31
问题 I have a String message = "hi"; and when the user gets the invitation he doesn't see my message, but something like you have a request from ... params.putString("message", message); params.putString("to", "123123123"); WebDialog webdialog = new WebDialog.Builder(PurchaseFlowActivity.this, Session.getActiveSession(), action, params) .setOnCompleteListener(new WebDialog.OnCompleteListener() { @Override public void onComplete(Bundle values, FacebookException error) { } }).build(); Window dialog

Publishing a post with privacy “Public” using Facebook SDK

丶灬走出姿态 提交于 2019-12-12 02:48:40
问题 I am using this code to post an image to the user wall Bundle params = new Bundle(); params.putString("method", "photos.upload"); params.putString( "caption", "Download link"); JSONObject privacy = new JSONObject(); try { privacy.put("value", "EVERYONE"); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } params.putString("privacy", privacy.toString()); byte[] imgData = takeScreenshot(); params.putByteArray("picture", imgData); mAsyncRunner.request(albumId,