facebook-android-sdk

Fetching user group from facebook using facebook api

浪子不回头ぞ 提交于 2019-12-08 13:07:35
问题 I want to fetch the user groups and want to list them but I am unable to fetch the groups from Facebook, though I am able to do *Successful Login *fetch friend list *i have also allowed the permission user_groups for fetching user groups here I am doing like this for fetching user group AsyncFacebookRunner mAsyncRunner = new AsyncFacebookRunner(facebook); mAsyncRunner.request("me/groups", params, new GroupsRequestListener()); public class GroupsRequestListener extends BaseRequestListener {

Facebook android sdk fetch_user_data example -can't get the data

血红的双手。 提交于 2019-12-08 11:01:37
问题 I am trying to get user data from example given here Fetch_user_example by developers.facebook.com When I press login then the webview opens and i can login but after that it redirect to same page without logout link and also the graph Api request i have made is not displayed below that Login Button(I have added the hidden text view as given in the tutorial) Here is the code public class MainFragment extends Fragment{ private static final String TAG = "MainFragment"; private UiLifecycleHelper

Cant import Request, Session and response Facebook SDK 4.0. [Egregious Documentation]

一曲冷凌霜 提交于 2019-12-08 09:40:16
问题 I am using the Facebook SDK 4.0 and I want to post on users wall using the OpenGraph API. I have defined the Action as: Celebrating The object as Milestone Now when in the Facebook Dev console I click on get code and switch to Android I get the following snippet: Request request = new Request( Session.getActiveSession(), "me/objects/friendsampleapp:milestone", params, HttpMethod.POST ); Response response = request.executeAndWait(); Here I cant get options to import Response, Request and

Phonegap facebook plugin: Not working when native FB app is installed

若如初见. 提交于 2019-12-08 09:25:57
问题 I have used cordova- 2.5.0 & facebook-sdk 3.0.2 in fb plugin.It works fine when device does not have native app installed. when native app is installed nothing is happened.means it cant get current access token of user.Any idea? According to me there are two ways: 1) disable to get access native app just like in ios. But its not right way as if user is allready login in native then he has to login again in my plugin setup. 2)dont know how to solve this issue.There is no issue with hash key as

Unwanted behavior with back button on a login screen activity

徘徊边缘 提交于 2019-12-08 09:03:37
问题 So I'm building an app, and it has a splash/login screen with a facebook login button. After the user logs in, and a user object with info returns, I want to insert some data into the database (not in the code yet, but doesn't matter), and then open the MainActivity activity. What happens is that on first launch, everything works correctly: If the user is already logged in (=there is an active session), the MainActivity activity is launched. If the user is not logged in, a login button shows

FB sdk, requestNewPublishPermissions() doesn't call any callback

廉价感情. 提交于 2019-12-08 08:32:16
问题 I followed the FB tutorial step by step, and I can't figure out why is this not working. All my fragments inherits from the BaseFragment : public class BaseFragment extends SherlockFragment { ... protected UiLifecycleHelper _uiHelper; protected boolean _isResumed = false; protected static final List<String> PERMISSIONS = Arrays.asList("publish_actions"); protected static final String PENDING_PUBLISH_KEY = "pendingPublishReauthorization"; protected boolean _pendingPublishReauthorization =

Posting user_generated photo from new native Share Dialog in FacebookSDK on android

我的梦境 提交于 2019-12-08 06:11:36
问题 I'm, trying to post an image to the Facebook (with OpenGraph) using new SDK v3.5 Share Dialog described here As a result I'm getting com.facebook.FacebookException: Error retrieving image attachment. The image is added to the dialog like described in the documentation: List<Bitmap> bitmaps = new ArrayList<Bitmap>(); bitmaps.add(bitmap); FacebookDialog shareDialog = new FacebookDialog.OpenGraphActionDialogBuilder(ShareAwardActivity.this, action, "my_app:my_action", "my_object")

Getting images from facebook album?

China☆狼群 提交于 2019-12-08 06:03:59
问题 i'm creating images viewer app , I want to make it simple and get images from facebook albume "trick is to let facebook albume acts as a database of images for app" so when I upload new images it's automatically shown in my app .. 回答1: you can fetch photos from Facebook via the Graph API. Taken from here https://stackoverflow.com/a/5841825/1965084 , have a look at the following code: ImageView user_picture; userpicture=(ImageView)findViewById(R.id.userpicture); URL img_value = null; img_value

Remove “user_friends” permission under Facebook Developer App Dashboard

我与影子孤独终老i 提交于 2019-12-08 05:08:09
问题 We are using Facebook Login for our Android app. We have a custom button view for Facebook Login and the exact code we are using for logging with Facebook is: LoginManager.getInstance().logInWithReadPermissions(this, Arrays.asList("public_profile")); Both "email" and "public profile" permissions are approved by default. We don`t need and also we are not using the "user_friends" permission or anything related to it. Under the " Facebook Developer App Dashboard -> App Review - My Permissions

Getting images from facebook album?

烂漫一生 提交于 2019-12-08 03:47:31
i'm creating images viewer app , I want to make it simple and get images from facebook albume "trick is to let facebook albume acts as a database of images for app" so when I upload new images it's automatically shown in my app .. alex you can fetch photos from Facebook via the Graph API. Taken from here https://stackoverflow.com/a/5841825/1965084 , have a look at the following code: ImageView user_picture; userpicture=(ImageView)findViewById(R.id.userpicture); URL img_value = null; img_value = new URL("http://graph.facebook.com/"+id+"/picture?type=large"); Bitmap mIcon1 = BitmapFactory