Search in sources :

Example 11 with SharePhotoContent

use of com.facebook.share.model.SharePhotoContent in project facebook-android-sdk by facebook.

the class ShareContentValidationTest method testItDoesAcceptSharePhotoContentByWeb.

@Test
public void testItDoesAcceptSharePhotoContentByWeb() {
    SharePhoto sharePhoto = buildSharePhoto("https://facebook.com/awesome.gif");
    SharePhotoContent sharePhotoContent = new SharePhotoContent.Builder().addPhoto(sharePhoto).build();
    ShareContentValidation.validateForWebShare(sharePhotoContent);
}
Also used : SharePhotoContent(com.facebook.share.model.SharePhotoContent) SharePhoto(com.facebook.share.model.SharePhoto) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest) Test(org.junit.Test)

Aggregations

SharePhotoContent (com.facebook.share.model.SharePhotoContent)11 SharePhoto (com.facebook.share.model.SharePhoto)6 Test (org.junit.Test)5 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)5 Bundle (android.os.Bundle)3 ArrayList (java.util.ArrayList)3 JSONObject (org.json.JSONObject)3 Bitmap (android.graphics.Bitmap)2 FacebookException (com.facebook.FacebookException)2 ShareLinkContent (com.facebook.share.model.ShareLinkContent)2 ShareOpenGraphContent (com.facebook.share.model.ShareOpenGraphContent)2 ShareVideoContent (com.facebook.share.model.ShareVideoContent)2 List (java.util.List)2 JSONException (org.json.JSONException)2 LargeTest (android.test.suitebuilder.annotation.LargeTest)1 AccessToken (com.facebook.AccessToken)1 ShareApi (com.facebook.share.ShareApi)1 Sharer (com.facebook.share.Sharer)1 ShareCameraEffectContent (com.facebook.share.model.ShareCameraEffectContent)1 ShareMediaContent (com.facebook.share.model.ShareMediaContent)1