Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy doesn't facebook accept my UIImage?
    primarykey
    data
    text
    <p>If I use the Facebook method:</p> <pre><code>[FBRequestConnection startForUploadPhoto:sendPicture completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { if (!error) { </code></pre> <p>Facebook does, in same cases explained below, not always accept my UIImage. If I create an image as in: </p> <pre><code>CASE 1: UIImage *sendPicture = [UIImage imageNamed:@"f_logo.png"] </code></pre> <p>Then it does accept my UIImage, but if I create them image like (in this example, postImageView is an UIImageView):</p> <pre><code>CASE 2: UIImage *sendPicture = self.postImageView.image; </code></pre> <p>Then it does <strong>not</strong> accept my UIImage. </p> <p>What could be wrong here? This is the error message:</p> <pre><code>Error Domain=com.facebook.sdk Code=5 "The operation couldn’t be completed. (com.facebook.sdk error 5.)" UserInfo=0xa06c970 {com.facebook.sdk:ErrorInnerErrorKey=Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0xa076840 {NSErrorFailingURLStringKey=https://graph.facebook.com/me/photos?sdk=ios&amp;access_token=BAAFZAZBNVZCfS0BACpZBJgjDz6kXZCt7t3pjiTz7rLVZAZCOXytAyReqvcuNjwJ4ntLHBrAtYodFcsoRFZBWZB5ZAzZA4w1HPLGdv1DtAevuur7yQCZC6N8gnc6U7WruoBLsN158nzTKvXa6MAZDZD&amp;migration_bundle=fbsdk0X1.68E7002A9AC18P-98220130120&amp;format=json, NSErrorFailingURLKey=https://graph.facebook.com/me/photos?sdk=ios&amp;access_token=BAAFZAZBNVZCfS0BACpZBJgjDz6kXZCt7t3pjiTz7rLVZAZCOXytAyReqvcuNjwJ4ntLHBrAtYodFcsoRFZBWZB5ZAzZA4w1HPLGdv1DtAevuur7yQCZC6N8gnc6U7WruoBLsN158nzTKvXa6MAZDZD&amp;migration_bundle=fbsdk0X1.3C8500A0449BP-85920130120&amp;format=json, NSLocalizedDescription=The request timed out., NSUnderlyingError=0xb82a090 "The request timed out."}, com.facebook.sdk:HTTPStatusCode=200, com.facebook.sdk:ErrorSessionKey=&lt;FBSession: 0xb85c5b0, state: FBSessionStateOpen, loginHandler: 0xb85b4b0, appID: 380400245374253, urlSchemeSuffix: , tokenCachingStrategy:&lt;FBSessionTokenCachingStrategy: 0xb854bf0&gt;, expirationDate: 2013-05-31 20:51:54 +0000, refreshDate: 2013-04-02 10:06:39 +0000, attemptedRefreshDate: 0001-12-30 00:00:00 +0000, permissions:( "publish_stream")&gt;} </code></pre> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload