facebook-android-sdk

Android Facebook album photos request only returns 25 photos

与世无争的帅哥 提交于 2019-12-13 05:32:02
问题 So i am trying to display facebook photos from an album in and Android app. The problem i am having is if i call this: facebookAsyncRunner.request(albumId + "/photos", new UserAlbumPhotosFetchListener(JSONResponse, photoView)); i get a JSONResponse of an array of 25 photos. However, i need more than just 25 photos... i need all of them in the album. So i tried calling this: facebookAsyncRunner.request(albumId + "/photos?limit=50", new UserAlbumPhotosFetchListener(JSONResponse, photoView)); in

Android Facebook API error: something went wrong please try again

守給你的承諾、 提交于 2019-12-13 04:39:43
问题 i'm sorry to repost this question, but the other one was put on hold for no reason and i have an app out there that doesn't work because of this problem, and i need a fix as soon as possible. THIS IS THE ONLY INFO ECLIPSE AND THE APP ITSELF GIVES TO ME: i've developed an app for android that uses fb to share a link, when i share a post with MY fb account everything goes fine, except that no one sees that post! but when i do with my gf's it doesn't even post it and gives me back a toast saying

Facebook messenger chathead is not opening up with the 'AccessToken.getCurrentAccessToken().getUserId()' user ID passed into the intent

瘦欲@ 提交于 2019-12-13 03:19:40
问题 I'm trying to open Facebook Messenger programmatically for specific user using his user ID. Here's my code: AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(mContext); LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); android.view.View dialogView = inflater.inflate(R.layout.dialog_right_swipe, null); dialogBuilder.setView(dialogView); TextView contactForBuyingTxt = dialogView.findViewById(R.id.contact_for_buying_txt);

Binder has been finalized when using Facebook's Android SDK

£可爱£侵袭症+ 提交于 2019-12-13 02:59:29
问题 I'm using Facebook's SDK for Android (latest version as of today). The code that is for authentication is the following: prefs = PreferenceManager.getDefaultSharedPreferences(this); facebook = new Facebook(FACEBOOK_APP_ID); String fbAccessToken = prefs.getString("fb_access_token", null); long fbAccessExpires = prefs.getLong("fb_access_expires", 0); if (fbAccessToken != null) { facebook.setAccessToken(fbAccessToken); } if (fbAccessExpires != 0) { facebook.setAccessExpires(fbAccessExpires); }

Facebook login through android

纵饮孤独 提交于 2019-12-13 02:27:56
问题 I write an Android application that integrates facebook, but failing in the login to facebook step. What I'm doing basically is to perform authorization and then ask if the session is valid. The answer is always negative. If I'm trying a simple request like: String response = facebookClient.request("me"); I am getting this response: {"error":{"message":"An active access token must be used to query information about the current user.","type":"OAuthException"}} Maybe I have the wrong hash key

Get user email from Facebook SDK android [closed]

本秂侑毒 提交于 2019-12-13 02:09:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I am just starting out with the Facebook SDK, I currently have an app that has its own login system, the user enters their email and password and then the app checks a mysql database to find the user. If the user is their it returns the user info and logs them into the app. What I am trying to do is allow the

Facebook server returns null data on query. Querying the same on Graph API Explorer gives me correct JSON Data

旧城冷巷雨未停 提交于 2019-12-13 00:52:59
问题 I'm trying to fetch the photos from particular album on facebook. Trying below URL gives me perfect data when querying at Graph API Explorer . But it returns null in my application code. Also when I tried on browser it returns me: { "data": { ] } which basically null : URL = "https://graph.facebook.com/3386086936429/photos?limit=10"; try { HttpClient hc = new DefaultHttpClient(); HttpGet get = new HttpGet(URL); HttpResponse rp = hc.execute(get); String st=rp.toString(); Log.e("RESPONSE", st);

Facebook SDK 3.0 Logout Not Working in android Application from any other Intent

六月ゝ 毕业季﹏ 提交于 2019-12-12 19:11:59
问题 I am using Facebook login in android app,Its Login Successfully . after Successful login intent goes to next page. from Second page i am trying to logout the Facebook ,its not Working Help me to resolve it. else suggest me Working example for Facebook Login,logout,Getting profile information Latest SDK4.2. Link I have used My Logout method public void logoutFromFacebook() { mAsyncRunner.logout(this, new RequestListener() { @Override public void onComplete(String response, Object state) { Log

Facebook FriendPicker not shown (Facebook Android SDK Tutorial “Show Friends” are not up to date?)

霸气de小男生 提交于 2019-12-12 11:44:50
问题 I recently downloaded facebook-android-sdk-3.8.0 and begun to develop an example-app with Facebook integration. I'm following these tutorials on the Facebook Developers page: https://developers.facebook.com/docs/android/scrumptious I have successfully implemented the first two parts, i.e. "Authenticate" and "Personalize". But now I'm totally stuck on the "Show Friends" tutorial (https://developers.facebook.com/docs/android/scrumptious/show-friends). Step 2e works good, but from that to step

Android Facebook SDK v3.0 SSO LoginButton returning a null GraphUser

依然范特西╮ 提交于 2019-12-12 10:54:49
问题 So I have a simple login button that does this in my oncreate: mLoginButton = (LoginButton)findViewById(R.id.connect_facebook_button); mLoginButton.setApplicationId(.getResources().getString(R.string.app_id)); mLoginButton.setUserInfoChangedCallback(new LoginButton.UserInfoChangedCallback() { public void onUserInfoFetched(GraphUser user) { setUser(user); // Just sets mUser to be this user try { Toast.makeText(this, mUser.getFirstName(), Toast.LENGTH_SHORT).show(); } catch (Exception