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

Album name #227

Open
darkovski88 opened this issue Sep 11, 2014 · 1 comment
Open

Album name #227

darkovski88 opened this issue Sep 11, 2014 · 1 comment
Assignees
Labels

Comments

@darkovski88
Copy link

Hello, I love this simple facebook sdk Thanks @sromku !
Now I have an issue when I upload photos by doing this:

`final Photo photo = new Photo.Builder()
.setImage(bitmap)
.setName(
recepie.getTitle() + "\n "

  • recepie.getSteps()).
    mSimpleFacebook.publish(photo, onPublishListener);`

Now the issue is that the album that is created for this images that are uploading is called sromku photos. How can i change this? I've tried to do this
Album album = new Album.Builder()
.setName("Album name")
.setMessage("Album create by #android_simple_facebook sample application")
.build();

but Album.Builder() its not resolved so I cannot use it.

So someone please help!

@sromku
Copy link
Owner

sromku commented Oct 13, 2014

@darkovski88 What do you mean by not resolved?
You can do next thing:

  1. Create your own album on facebook
Album album = new Album.Builder()
    .setName("Your album")
    .build();

mSimpleFacebook.publish(album, onPublishListener);

In your listener onComplete() you will get albumId
2. Publish your photo to your album:

mSimpleFacebook.publish(photo, albumId, onPublishListener);

Or, if you already has the album on facebook and you want to find out what is the albumId, then call:

mSimpleFacebook.getAlbums(onAlbumsListener)

@sromku sromku self-assigned this Oct 13, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants