Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Login-> session doesn't clear with native facebook app #424

Open
pastafarianGit opened this issue Apr 28, 2016 · 1 comment
Open

Login-> session doesn't clear with native facebook app #424

pastafarianGit opened this issue Apr 28, 2016 · 1 comment

Comments

@pastafarianGit
Copy link

I need this library to:
1. post two pictures on facebook from my app.
2. change facebook account inside my app.

Problem is, to post more than one picture you need to use
"Publish photos with dialog:
List photos = ...
mSimpleFacebook.publish(photos, onPublishListener);"
and that only supports with using FB dialog.

If I do it this way. I can't change facebook account since it is saved in original facebook app. And if I want to do it without dialog, I can post only one picture.

Any help is much appreciated.

@pastafarianGit
Copy link
Author

made it work wih fb sdk and without native fb app installed.

private void postPhotos() {

ArrayList photos = new ArrayList<>();

SharePhoto sharePhoto1 = new SharePhoto.Builder().setBitmap(image1).build();

SharePhoto sharePhoto = new SharePhoto.Builder().setBitmap(image).build();

photos.add(sharePhoto);
photos.add(sharePhoto1);

SharePhotoContent sharePhotoContent =
        new SharePhotoContent.Builder().setPhotos(photos).build();
ShareApi.share(sharePhotoContent, shareCallback);

}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant