Giter Site home page Giter Site logo

Comments (50)

yujuan avatar yujuan commented on March 29, 2024

We do have some criteria when it is goes to stream. if you publish the same content in short time, the second time will not go to stream.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I see. The content though is a UIImage, and it is different each time. I'll have to double check to see if the caption is different. Is the caption what it is looking at for the criteria? If so, that may explain it. Thank you for the reply.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I double checked, and it doesn't seem like this is the issue. I made sure the images were very different, and ensured that the caption on each was different. One out of 5 showed up in the stream. Ideas?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

It seems that we have some problem with our server. We are working on investigate this issue. You do not need to change your code. Will keep you post when the problem is solved.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Any update on this? Thanks for your time.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

We are still working on this issue. Thanks for you patience!

from facebook-ios-sdk.

amiton avatar amiton commented on March 29, 2024

I'm also having the exact same behavior. any updates on this issue?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Is it still the case? I will follow up to make sure the fix out.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

This fix should be out by tomorrow night.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Excellent, thank you. To be clear though, the fix is something server side, not with the SDK, correct?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

that is correct

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Looks like there may still be an issue. The first photo uploaded fine, and posted to the stream fine. 2nd, and 3rd uploaded, but nothing showed in the stream. Photo's and captions were different. Ideas?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

The change still not pushed out yet. Can you check back tonight after 7 or 8 pm?
Thanks

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Yep sure thing. Thanks for the fast response.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Looks like the release of the fix is put off till tomorrow due to some other issues... You still see the bugs, right?

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I tried a couple uploads last night around 11ish and both worked. I tried again this morning, and the 1st upload posted to the stream, but the 2nd did not. Looks like it is still an issue.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

It is still an issue as of this morning.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Can you try use the DemoApp in the sdk click on the button photo upload after logged in?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Some times the stream may have some delay. and if you post multiple photos , the stream may combine to one stream with the info: 5 new pictures.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I ran the demo app, first uploaded, second & third did not. I'll wait a bit, then try again to see if the stream delay is the issue. Can you say what that delay is?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Do you check on the wall of the user who make the photo.upload? It usually takes several minutes, though sometimes a bit longer

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Also you click on the button, need to wait a bit till the upload process is done then click the 2nd time

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Yes. I checked the wall, and yes, I did wait till it was complete (checked the photo upload first).

Let me ask you this, if the first photo is uploaded, then the user deletes that post from their wall, then waits a few minutes and does it again (say they didn't like the first picture that was posted, and want to post a diff pic instead), would it (the new pic) or would it not show up in the stream. I believe this is what is going on, though I would think the 2nd picture would still show up in the stream.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

It could be when you delete the first photo, the 2nd one was merged in the first stream. so it would not show up. Can you not delete it and try?

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Ok, using the demo app, i just pressed photo upload (has not been touched for 10 min now. The photo uploaded, but did not appear in the stream.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Still not show up? Does the demoapp title show: photos upload successfully? Check your previous photo upload msg on the wall, are they merged together?

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Just uploaded another. Yes it says "Photo upload Success". The photo did indeed upload. Nothing in the users stream. I checked the stream 4 minutes after posting, still nothing there. Only one that ever posted was the first one, which has since been deleted (about 30 min ago)

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

What is your userid? May I login it and check?
Thanks

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I mailed it to you.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

I see what is going on now, you need to ask photo_upload extended permission, i.e. ask extended permissions like:
_permissions = [[NSArray arrayWithObjects:

              @"read_stream", @"offline_access",@"photo_upload",nil] retain];

Thanks

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I can certainly add photo_upload, but if that is the case, why is it working the very first time?

Additionally, the documentation for the photos.upload says:

Photos uploaded by applications with the publish_stream extended permission are visible immediately.

I am using the publish_stream permission, so are you saying now both are needed?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

For photo upload , you need photo_upload permission, but you may call stream.publish api for other things. So you can add both permissions.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Well, prior to using the new facebook-ios-sdk, the permissions below worked fine, and seem to work sometimes now.
permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access", @"publish_stream", nil] retain];


I'd also like to point out that the demo app does not use photo_upload permission either.
_permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access",nil] retain];


Unless I'm just missing it, it looks like photo_upload permission has been removed from the documentation for permissions as well: http://developers.facebook.com/docs/authentication/permissions


All this aside, I went ahead and added the permission you suggested as follows:
permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access", @"publish_stream", @"photo_upload", nil] retain];

The same behavior is still present. The photo uploads just fine, no stream post is made however. I went as far as removing permissions entirely from the facebook application settings, and forcing it to re-authorize all permissions. Here is a screen shot of the permission screen after photo_upload was included: http://flic.kr/p/8xCAvj

I would be fine with generating my own stream post to the image, is there anyway to do that once the photo has been uploaded and a photo id is returned? I know that facebook recently changed it where it would not allow stream posts with images that were linked to from its servers.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Supposedly should use publish_stream, if you use photo_upload, it is essentially display the same prompt permission msg. I will continue try to repro this issue with your appid. If you want to use stream publish dialog to publish an image, you would need first upload the photo in your own host server and then pass in a link to that photo to the attachment as a media.

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

Any luck here? Anything I can do to help narrow down the issue? Thanks for taking your time to investigate and working on it.

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

Is this issue resolved? I'm not able to upload any images, although I was successful only once so far. I have:

_permissions = [[NSArray arrayWithObjects: @"read_stream", @"offline_access", @"publish_stream", @"user_photos", nil] retain];

publish_stream works whether it's in the permissions array or not. So, I can always publish text. However, I'm not able to upload any photos.... Is there a workaround? "photo_upload" is not a valid array element anymore, according to the latest facebook docs, like it was pointed out by xC0der.

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

If you use the stream.publish dialog, you need to upload the photo to your own site and have the attachment have a link to the photo.

if just for photo upload, can you ask for publish_stream permission and then upload the photo? is it appear in your stream?

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

I prefer not to upload the image to my site.
So, if I want to use the upload_photo method, I need to use the [_facebook dialog] for publish_stream? That's what you mean? Sorry, it's not clear to me..

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

For photos.upload, it is an api method see ref http://developers.facebook.com/docs/reference/rest/photos.upload and my DemoApp as example. It will upload a picture to your album. For this photo, you can not use the photo url in the dialog stream.publish. Photo upload does not have the feature of stream.publish dialog which allow you specify many information instead of just a photo. if you want to use stream.publish to contain an image, you would have to upload it on to your own site.

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

I went over the facebook documentation for the REST methods, like photos.upload, before. Like I said, I do not want to use the stream.publish method. I prefer using the photos.upload. However, I am not able to upload any photos. I only managed to post, only once, the image you use in your demoapp (the url path for the facebook icon). I also tried posting a locally created UIImage object, but did not go through either.
So, what is the main reason for the photos.upload method not being succesful?
Thanks for all your quick replies!

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Does the photo go to your album? or What is the error do you get?

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

No, it does not go to my album. This is the error object:
Error Domain=facebookErrDomain Code=101 UserInfo=0x49926e0 "Operation could not be completed. (facebookErrDomain error 101.)"

do you think there is some kind of authorization issue? Missing the accessToken?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

Can you use debugger to put a break point at the place the error is returned. and then use po [error localizedDescription] to see what the error msg really is? thanks

from facebook-ios-sdk.

xC0der avatar xC0der commented on March 29, 2024

I've been seeing the same facebook Domain error on several apps today. Maybe something is going on?

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

I see is this the same one as http://github.com/facebook/facebook-ios-sdk/issues#issue/41 ? We have some server change which has break the sdk. The fix should be out by tonight. Thanks

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

Yujuan, I did exactly that. If you want the NSString for the localized description of the NSError is:
"Operation could not be completed. (facebookErrDomain error 101.)"
Obviously error is returned at:

  • (void)request:(FBRequest_)request didFailWithError:(NSError_)error

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

Which server are you referring to? facebook's server? By the way, the graph Api is not working either on the DemoApp, like it used to. So, this issue is still open

from facebook-ios-sdk.

yujuan avatar yujuan commented on March 29, 2024

I mean the facebook server. We have issue where when the app asked for offline_access, the expires_in does not returned. previously, it should be 0. this break the SDK. the fix is coming out by tonight.

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

Thanks so much! Please let me know when the fix will be deployed.

from facebook-ios-sdk.

fotios2010 avatar fotios2010 commented on March 29, 2024

Seems to be working just fine this morning! I can post photos on facebook without a problem! Thanks! I hope it stays this way..

from facebook-ios-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.