facebook-android-sdk

Current Month Facebook Friends Birthdays in Android

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 15:33:11
I am writing an app in which i am fetching list of Facebook Friends using Hackbook Sample Code but now i want to fetch list of Facebook Friends those birthdays in Current Month , to get list of all Friends i am using this code: public static void requestFriends(FacebookRequest facebookRequest) { Log.d(LOG_TAG, "requestFriends(" + ")"); String query = "select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by birthday_date"; Bundle params = new Bundle(); params.putString("method", "fql.query"); params.putString("query", query);

Facebook key hash does not match any stored key hashes

倖福魔咒の 提交于 2019-11-26 14:17:15
I'm really having troubles with the Facebook hash key. I generated it in my Eclipse.. proof: Then I went to https://developers.facebook.com/ and registered a new app. And finally I've set my hashkey at the settings of Facebook developers: But no whatter I do I keep getting the same error log: "Key hash B5dWUEYfZJL/...........jyA= does not match any stored key hashes" Does anybody know what I did wrong or how I can fix this problem? If I used the id and name from the HelloFacebookSample inside my own app everything works. So it HAS to do with the key hash, id or name I've set somewhere most

When to request permissions with Facebook's new Android SDK 3.0?

 ̄綄美尐妖づ 提交于 2019-11-26 12:18:29
问题 With Facebook\'s new Android SDK 3.0 (that was released a few days ago), the process of authentication has changed. So how do you request a read permission such as \"friends_hometown\"? The following code is how I am trying to do it - but I\'m quite sure it\'s not the way you should do this: Version 1: protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Session.openActiveSession(this, true, new Session.StatusCallback() { // start Facebook login @Override

How to programmatically log out from Facebook SDK 3.0 without using Facebook login/logout button?

↘锁芯ラ 提交于 2019-11-26 10:15:48
问题 The title says it all. I\'m using a custom button to fetch the user\'s facebook information (for \"sign up\" purposes). Yet, I don\'t want the app to remember the last registered user, neither the currently logged in person via the Facebook native app. I want the Facebook login activity to pop up each time. That is why I want to log out any previous users programmatically. How can I do that? This is how I do the login: private void signInWithFacebook() { SessionTracker sessionTracker = new

WebApi ASP.NET Identity Facebook login

南楼画角 提交于 2019-11-26 10:09:09
问题 In the facebook authentication flow for asp.net identity, the facebook oauth dialog appends a code rather than access token to the redirect_url so that the server can exchange this code for an access token via http://localhost:49164/signin-facebook?code=...&state=... . My problem is that my client is a mobile app which uses the facebook sdk and that straight away gives me an access token. Facebook says using the sdk always gives you an access token so can I straight away give web api the

Facebook authentication without login button

╄→尐↘猪︶ㄣ 提交于 2019-11-26 08:49:19
问题 I have followed some Facebook API 3.0 tutorials, including the Login/Logout and the Publish To Feed examples. So the login works this way: App opens, shows a fragment which displays a login button User clicks login, the authentication is done via the referenced FacebookSDK library (com.facebook.widget.LoginActivity) and the provided code using sessions. User is redirected to next screen I don\'t want to make the user to login this way. I want them to use my app without any login/registration,

Openssl is not recognized as an internal or external command

我的未来我决定 提交于 2019-11-26 06:56:14
问题 I wish to generate an application signature for my app which will later be integrated with Facebook. In one of Facebook\'s tutorials, I found this command: keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 In the tutorial, it says that by running this cmd, my process of generating the signature will start. However, this command gives an error: openssl is not recognized as an internal or external command How can I get rid of

Android Facebook 4.0 SDK How to get Email, Date of Birth and gender of User

末鹿安然 提交于 2019-11-26 06:04:28
问题 I am using the following code. I want the user\'s Date Of Birth, Email and Gender. Please help. How to retrieve those data? This is my onViewCreated() inside the Fragment. @Override public void onViewCreated(View view, Bundle savedInstanceState) { // Setup TextView. mTextDetails = (TextView) view.findViewById(R.id.text_details); // Set up Login Button. LoginButton mButtonLogin = (LoginButton) view.findViewById(R.id.login_button); // setFragment only if you are using it inside a Fragment.

Upload photo to Facebook with Facebook Android SDK in Android

笑着哭i 提交于 2019-11-26 05:54:03
问题 I\'m new to Android. I\'m searching for load photo to facebook by authorization, getting access_token. How to do this? Please give me a sample code in Java. 回答1: Just posted here the simple way to upload a photo: android facebook publish photo Code: byte[] data = null; Bitmap bi = BitmapFactory.decodeFile(photoToPost); ByteArrayOutputStream baos = new ByteArrayOutputStream(); bi.compress(Bitmap.CompressFormat.JPEG, 100, baos); data = baos.toByteArray(); Bundle params = new Bundle(); params

Current Month Facebook Friends Birthdays in Android

我们两清 提交于 2019-11-26 04:28:38
问题 I am writing an app in which i am fetching list of Facebook Friends using Hackbook Sample Code but now i want to fetch list of Facebook Friends those birthdays in Current Month , to get list of all Friends i am using this code: public static void requestFriends(FacebookRequest facebookRequest) { Log.d(LOG_TAG, \"requestFriends(\" + \")\"); String query = \"select name, birthday, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by birthday_date\"; Bundle