This repository has been archived by the owner on Aug 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 349
Publish video
Roman Kushnarenko edited this page Oct 16, 2014
·
1 revision
You can publish (upload) a video only to the default "Videos" album.
Video
can be created from:
File
byte[]
Initialize callback listener:
OnPublishListener onPublishListener = new OnPublishListener() {
@Override
public void onComplete(String id) {
Log.i(TAG, "Published successfully. id = " + id);
}
/*
* You can override other methods here:
* onThinking(), onFail(String reason), onException(Throwable throwable)
*/
};
Build video for publishing:
File videoFile = ...
// create a Video instance and add some properties
Video video = new Video.Builder()
.setVideo(videoFile)
.setDescription("Video from #android_simple_facebook sample application")
.setName("Cool video")
.build();
Publish video to "Videos" album
mSimpleFacebook.publish(video, onPublishListener);
-
Setup
-
Login/Logout
-
Publish 🔻
-
Requests/Invite
-
Get
-
Additional options
-
Samples