facebook-android-sdk

An Error occured while posting to Friends wall using Facebook android sdk 3.6 (newest)

回眸只為那壹抹淺笑 提交于 2019-12-02 17:41:53
问题 I am getting following error when posting to friends wall using Facebook Android sdk Here is how I have written posting code. private void publishFeedDialog() { Bundle params = new Bundle(); params.putString("name", "Facebook SDK for Android"); params.putString("caption", "Build great social apps and get more installs."); params.putString("description", "The Facebook SDK for Android makes it easier and faster to develop Facebook integrated Android apps."); params.putString("link", "https:/

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

隐身守侯 提交于 2019-12-02 17:01:28
is there anything similar to bundler (ruby) and cocoa pods (ios) for managing dependencies in Android? Gradle + Maven Central seems to be the Android equivalent. 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

Facebook android sdk's 'AccessToken.getCurrentAccessToken.getUserId()' method is returning different id from the id retrieved using findmyfbid.com

▼魔方 西西 提交于 2019-12-02 16:24:46
问题 I'm trying to get user's id like this: AccessToken.getCurrentAccessToken.getUserId() and it is returning an id like this: 1493******22153 but when I'm retrieving the id for same user using findmyfbid.com, I'm getting an id like this: 1000******00783 Though both ids when used like this https://facebook.com/id is opening the same profile successfully in browsers. Why is this happening and what is the difference between these 2 ids? 来源: https://stackoverflow.com/questions/46751331/facebook

Is it impossible now to open Facebook Messenger chathead of friends from my app?

放肆的年华 提交于 2019-12-02 15:05:29
问题 I'm retrieving user's Facebook id using AccessToken.getCurrentAccessToken.getUserId() and saving it in FirebaseDatabase . Then I'm retrieving it and populating several CardView s using the data. Each card gets an ID and there's a button on card which when pressed should open the Facebook Messenger chathead associated with that ID. I tried opening the chathead using this code: Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("fb-messenger://user/"+fbID)); intent.addFlags(Intent.FLAG

Facebook installs tracking for Android

我们两清 提交于 2019-12-02 13:51:36
We are still in process of investigation, why our installs do not get tracked. I have opened another support ticket with Facebook to clarify if install and login are equal or different events, but I also want to dig more into the Ti.Facebook module. We've been testing on Android because of the ease of updates. This is the explanation on Facebook SDK, what needs to be done, to track installs: https://developers.facebook.com/docs/app-ads/sdk#install-tracking And this is the code to log in installs in Android: protected void onResume() { super.onResume(); AppEventsLogger.activateApp(this); } I

Android facebook api, get diffrent size profile picture

只愿长相守 提交于 2019-12-02 12:17:36
I'm using the relatively new Facebook graph api. I'm getting a list of friends and their profile pics that use the app. I'm not sure how to modify the parameters that I'm sending so that the picture that is returned is large. The default one that's returned currently is to small. I'm using the newMyFriendsRequest. the parms I send it look like this... Bundle parameters = new Bundle(); parameters.putString("fields", "picture,name"); request.setParameters(parameters); request.executeAsync(); Not sure how to add a parm to that requests so the picture returned to me is large. Can anyone help?

Facebook android sdk's 'AccessToken.getCurrentAccessToken.getUserId()' method is returning different id from the id retrieved using findmyfbid.com

孤街浪徒 提交于 2019-12-02 10:57:10
I'm trying to get user's id like this: AccessToken.getCurrentAccessToken.getUserId() and it is returning an id like this: 1493******22153 but when I'm retrieving the id for same user using findmyfbid.com , I'm getting an id like this: 1000******00783 Though both ids when used like this https://facebook.com/id is opening the same profile successfully in browsers. Why is this happening and what is the difference between these 2 ids? 来源: https://stackoverflow.com/questions/46751331/facebook-android-sdks-accesstoken-getcurrentaccesstoken-getuserid-method-is

Explicitly Shared not working for post - Facebook Android SDK Open Graph Story

余生颓废 提交于 2019-12-02 10:47:46
问题 I am currently using the Facebook Android SDK 3.19.1 to post an Open Graph Story to our user's timeline. The story is added to the user's activity log, but does not show up on their timeline. I have a custom action and object for my story, and I have set the "Explicitly Shared" option for my Action and the corresponding properties in code. I have also submitted and been approved for the "publish_actions" permission. Am I missing something here? private void postGraph(final Bundle b, final

Facebook API / Android : Wall Post publish with image attachment not working

风流意气都作罢 提交于 2019-12-02 10:22:14
问题 I have the following code. It works and posts the message-part but the attachment part does'nt work. I suspect it has to do with passing a JSON as a string. Facebook returns "{"id":"23522646737635675"} . So its not an error. Bundle params = new Bundle(); params.putString("message", message); JSONObject attachment = new JSONObject(); attachment.put("href", URLEncoder.encode("http://a.espncdn.com/photo/2010/0523/pg2_a_cricket_576.jpg")); attachment.put("name", "Cricket Fantasy"); attachment.put

Sharing on Facebook from Android using setContentUrl()

依然范特西╮ 提交于 2019-12-02 10:12:32
I am having some trouble while trying to share content from my app into Facebook. I am using the following code to do it: facebookButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if(ShareDialog.canShow(ShareLinkContent.class)){ ShareLinkContent linkContent=new ShareLinkContent.Builder() .setContentUrl(Uri.parse(imageUrls.get(0))) .build(); shareDialog.show(linkContent, ShareDialog.Mode.WEB); } } }); My images are stored on Firebase Storage and I am able to post on Facebook as well but the title and description are both set to firebasestorage