Questions tagged [facebook-android-sdk]

The Facebook SDK for Android helps Android app developer implement Facebook functionality into their Android apps. Features include Facebook Login, Friend and Place pickers, session management, native object responses from the Graph API and Feed and Requests dialogs.

facebook-android-sdk
Filter by
Sorted by
Tagged with
0 votes
4 answers
5k views

why am I getting the error "error executing aapt "

I'm getting the error executing aapt :return code 1073741819 due to which .apk file is not generated how to fix this. How to fix if r.java file is missing
0 votes
1 answer
312 views

Cannot see my posting on friend's wall using Android Facebook Api 3.8

I'm using Android Facebook SDK 3.8. I'm trying to post a text on friend's wall. Even though there is no error(I'm getting the post-id), I cannot see the posting on my friend's wall. I tried WebDialog, ...
1 vote
1 answer
4k views

Android Facebook API error: something went wrong please try again

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 ...
0 votes
0 answers
296 views

Facebook android sdk FacebookDialog stop working to share link

I tried use Facebook SDK, FacebookDialog in Android app to share. It works sometimes me and others. But me I can't share. When I push the "Post" on dialog screen, it falls back with this Toast ...
1 vote
0 answers
86 views

Setting Permissions in Android Facebook SDK

I am currently using sessions to log user into Facebook. private Session createSession() { Session activeSession = Session.getActiveSession(); if (activeSession == null || ...
0 votes
2 answers
2k views

Android - Facebook connectivity fails

In my Android app, I am integrating the Facebook SDK to have the shareDialog in it. The share dialog open perfectly with the pre-populated details. When I clicked SHARE on top right of sharedialog ...
3 votes
2 answers
3k views

Facebook android sdk how to get the number of likes for a given page

I would like to get the number of likes for a given page with its id. Here is the graph api request I would like to translate with the facebook-android-sdk. I cannot figure how to make it. I get ...
0 votes
3 answers
5k views

Android post picture to Facebook public page wall

I'm currently able to post to a public page wall using: JSONObject json = new JSONObject(); json.put("message", "I'm on your wall"); Request req = Request.newPostRequest(getSession(), "...
3 votes
1 answer
186 views

How to retrieve my location and phone number from facebook in Android?

I am a newbie in Android.I have integrated Facebook with Android. I have retrieved the id,name and the profile picture. I want to retrieve my phone number and location from Fb. I can't understand the ...
6 votes
2 answers
480 views

SDK for Android:How facebook check the Hash key?

When we want to use Facebook SDK for Android as our SSO solution, we need to put our Android application signature into our Facebook application settings (Step 5 of Facebook sdk for android). And ...
0 votes
1 answer
371 views

exception when trying to retrieve user's friends

I'm trying to get on login action user's friends list with the following code: Request request = Request.newMyFriendsRequest(ParseFacebookUtils.getSession(), new Request.GraphUserListCallback() { @...
1 vote
1 answer
154 views

Error in the android layout at com.facebook.widget.LoginButton

I have imported the Facebook SDK as a library and made sure the jar is in the build path. I have rebuild the project couple of times but i could see there is an error in the line which uses the login ...
1 vote
0 answers
21 views

Avoid Log in button in shareDialog feature of Facebook

I am using the share Dialog feature in my Android App. The login button which has inbuilt codes to facilitate the process of opening the session and some other functionality. Is there is any way to ...
0 votes
1 answer
69 views

Android & fb connect : how to get the right HashKey?

I get the facebook error the key myAppKey dons't match any allowed key It actually matches the only allowed key in the facebook app parameters. Where does the problem come from ? (I am using Cordova ...
0 votes
1 answer
937 views

Facebook release key hash using eclipse

I am in the process of registering my android app in Facebook. This is to make my app to post a wall message to their Facebook page. During this process it asks about the release key hash. In the ...
1 vote
0 answers
284 views

Facebook registration process for Android App

I am in the process of registering my android app in facebook. I am following the steps shown in the document https://developers.facebook.com/docs/android/getting-started This needs the package name ...
0 votes
1 answer
127 views

Facebook permissions - requesting additional permissions

I want to get a list of a users albums names and ids. You need to add the permission users_photos for this. I created a method called fetchAlbums, and in it I am requesting additional permissions. ...
1 vote
1 answer
531 views

Does facebook dialog of android sdk allows setting the feed text?

i've tried to set text(which will be written in feed) using ShareDialogBuilder and FeedDialogBuilder. but, it seems there is no any to set plain text in dialogs. they just allows setting the data of ...
1 vote
1 answer
1k views

Android Facebook SDK - Share post with public

I'm using Facebook SDk for android for posting statuses to user's timeline and it works fine except that the posts are shared with the user's friends and not with the public which is what I need it to ...
4 votes
3 answers
7k views

Facebook authorization access token?

I'm using the tutorial code... import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.facebook.android.*; import com.facebook.android.Facebook.*; public ...
11 votes
2 answers
20k views

Get publish_action permission after getting read permissions from Facebook

I'm integrating Facebook log in in my application. I'm able to get the read permissions but how to get publish permissions from Facebook SDK. This is how I'm asking for the permissions for read: @...
0 votes
1 answer
244 views

renew facebook access token in android

What is the best way to renew facebook SDK's access token in an Android app? So far what I've been doing in each splash screen, is to invoke the facebook SDK and to get the access token (if changed or ...
0 votes
0 answers
240 views

facebook realtitme update in android returns null

I would like to get realtime_update when user's friendlist changes and am trying to subscribe to friends object .I have the code below where I added params.putString("access_token", "12|wewee"); ...
1 vote
2 answers
2k views

Facebook profile picture Android returns null

Previously I was getting Facebook user profile picture like this and everything worked fine till recently. But now every time it returns null. Here is the url: "http://graph.facebook.com/"+userID+"...
0 votes
1 answer
152 views

facebook realtime updates from android

How do I get facebook realtime updates with android .Basically everytime the user's friendlist changes I need to update the count.I used the code below but I get error msg : {This method must be ...
2 votes
1 answer
266 views

FB Android: How to ask a publish permission during installation?

I'm trying to convert my app to use the new Facebook Android SDK 3.0. I want to be able to check in places with my app. I've switched my old log in method to the native-login button supplied with the ...
2 votes
1 answer
1k views

How to get rid of Force Close After adding Facebook Sdk for Tracking Mobile App Install Ad?

I am running Facebook Ad for Mobile Install, that's why i added Facebook sdk to my app to track installs, And added code as per instructions. But Now i am getting force close, also i checked in all ...
0 votes
2 answers
126 views

How to get translated user name from facebook?

My android application uses Facebook SDK. I want to know, is it possible to get friend's name in two languages. For example, my friend have two name options in Facebook, english version and russian ...
1 vote
2 answers
3k views

android facebook java get user name with Graph API

I would like to get name from user id with Graph API, I already have the user id from a SELECT query https://graph.facebook.com/"+id+"?fields=name I don't know how to call a http/url query and ...
1 vote
1 answer
676 views

facebook sdk 3.8 lint errors when exporting signed application

My app works fine when not exporting signed application. However, it starts getting lint problem when exporting signed application. I don't think modifying facebook source code is a good idea, but ...
0 votes
1 answer
261 views

In which form the data of facebook graph api me/home should be stored?

I'm getting some user data with API /me/home. I want to ask that in which form shall I store the result- in JSONArray or JSONObject? Please tell me the method to store data. I am using following ...
3 votes
0 answers
170 views

Can't use 'If-None-Match' request header with Facebook android SDK

I'm using Facebook android SDK to execute a graph call to fetch all my friends. I'm trying to use the 'If-None-Match' request header but I can't find a way to add headers to the request. I'm managing ...
0 votes
1 answer
269 views

Authorization hangs on App authorization page

In Hackbook Android sample and any other Facebook SDK 3.0.1 samples i getting trouble to login. I go through facebook login dialog and after successful authentication then app authorization dialog ...
0 votes
1 answer
125 views

Which Facebook API to use for Android project

I want to include a way to search FB posts containing a particular hashtag in my app. I searched the web for FB libraries for android and came across 3: facebook-android-sdk : Can never get this ...
1 vote
1 answer
2k views

Facebook connect 3.5 Session: an attempt was made to open an already opened session

When i click on fbconnect below : fbconnect.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // Check for an open session /*Session session ...
0 votes
2 answers
350 views

Facebook login and android, what approach to use

I am a bit confused with facebook login procedure. At the moment my application works like this: Login activity where user logs in and starts fragment activity Fragment activity with viewpager and 3 ...
0 votes
1 answer
785 views

Send Facebook friends notification

I want to send notification to my selected Facebook friends,According to the doc,I used following code. private void sendNotification() { Bundle params = new Bundle(); params....
0 votes
0 answers
774 views

which properties are available in fb graph object?

I want to use fb SDK to get social data after user logs in to my android app. For example: gender, age, education, address, sexual orientation, pages he\she likes and more. I have thought using this:...
1 vote
3 answers
4k views

Unable to login with Facebook SDK for Unity on Android

The problem The first time I call FB.Login I'm redirected to facebook but then there seems to be a problem with coming back to my app. I'm getting the message "[App name] has stopped working." I've ...
-2 votes
1 answer
159 views

Post message on Facebook wall

I am trying to post a message on Facebook wall through my application. I want to post "yeehaa, you are on facebook now" I am using this code: btnPostToWall.setOnClickListener(new View....
0 votes
0 answers
175 views

Why doesn't my Facebook integrated with Android app run on a mobile phone?

I am a newbie in Facebook integration with Android. I have integrated Facebook with Android in which I have to move on to another activity after successful Facebook login. I tested my app on the ...
0 votes
1 answer
114 views

Upload from URL to Facebook album

I am trying to upload images from a Url to facebook. Ideally I would like to create an album (based on some text input) Then upload some images into that album using the URL of the images (which will ...
1 vote
1 answer
111 views

Facebook - how to upload to album from http source

I am trying to upload a photo to an album on facebook from an http source (i.e. the file is not on the users phone). Bundle postParams = new Bundle(); postParams.putString("name", "New ...
0 votes
1 answer
555 views

Facebook sdk how to set two read permission to one

I have a problem that i get two permissions pop up boxes for my app. First one is "Explovia would like to access your public profile and friend list" and second one is "Explovia would like to access ...
0 votes
3 answers
496 views

get email from android facebook sdk

i have working code to get user info except the email. this is my request code: private void requestLoginFb() { Session session = Session.getActiveSession(); if (!session.isOpened() &...
0 votes
2 answers
974 views

how to post image in facebook wall with dialog

I am using Facebook SDK and calling WebDialog in my app to post something on Facebook , it can post Text but image not,is it can't use params.putByteArray to do? How can I resolve this problem with ...
-1 votes
1 answer
1k views

Facebook Login Button Appears Over Navigation Drawer

I'm trying to implement the facebook login tutorial, along with a navigation drawer. I managed to create the drawer successfully, but when I tried it on the emulator, the facebook login button appears ...
0 votes
1 answer
3k views

Session state CLOSED_LOGIN_FAILED

I'm working on facebook android sdk. I'm getting the hash key using following code .Now I'm getting error Session state CLOSED_LOGIN_FAILED after login to Facebook. Ref : if(session.isOpen()), ...
3 votes
1 answer
871 views

android facebook sdk, sharing -- how to detect succcess?

Following the tutorial on Facebook Android SDK Official Site, in the place where I set the uiHelper .onActivityResult, I realised that.. whether I post something to the web or not (even if I simply ...
1 vote
1 answer
1k views

Application force closes when logging in to facebook with Facebook Unity SDK for Android

I have created a simple button to test Facebook login with Facebook Unity SDK in my game. The login works perfectly within the Unity editor but the application force closes when testing on my HTC ...

1
22 23
24
25 26
37