Comments (13)
Thank you for your report!
Our SDK does not support video upload yet, When you call video.upload, you need to make the video.upload call to http://api-video.facebook.com , see ref
http://developers.facebook.com/docs/reference/rest/video.upload
We will continue work on that to support video, at the same time you can also write your own code to upload video.
Thanks!
from facebook-ios-sdk.
hi yujuan,
i have implemented the video uploading feature, but seems to be not working. When i send request to the url http://api-video.facebook.com/resetserver.php it returning me some bunch of html string as response.. Please find the attached code
-
(NSMutableData *)generatePostBody {
NSMutableData *body = [NSMutableData data];
NSString *endLine = [NSString stringWithFormat:@"\r\n--%@\r\n", kStringBoundary];
NSMutableDictionary *dataDictionary = [NSMutableDictionary dictionary];[self utfAppendBody:body data:[NSString stringWithFormat:@"--%@\r\n", kStringBoundary]];
for (id key in [_params keyEnumerator]) {
if (([[_params valueForKey:key] isKindOfClass:[UIImage class]])
||([[_params valueForKey:key] isKindOfClass:[NSData class]])) {[dataDictionary setObject:[_params valueForKey:key] forKey:key]; continue;
}
[self utfAppendBody:body
data:[NSString
stringWithFormat:@"Content-Disposition: form-data; name="%@"\r\n\r\n",
key]];
[self utfAppendBody:body data:[_params valueForKey:key]];[self utfAppendBody:body data:endLine];
}if ([dataDictionary count] > 0) {
for (id key in dataDictionary) {
NSObject dataParam = [dataDictionary valueForKey:key];
if ([dataParam isKindOfClass:[UIImage class]]) {
NSData imageData = UIImagePNGRepresentation((UIImage*)dataParam);
[self utfAppendBody:body
data:[NSString stringWithFormat:
@"Content-Disposition: form-data; filename="%@"\r\n", key]];
[self utfAppendBody:body
data:[NSString stringWithString:@"Content-Type: image/png\r\n\r\n"]];
[body appendData:imageData];
} else {
NSAssert([dataParam isKindOfClass:[NSData class]],
@"dataParam must be a UIImage or NSData");NSString *filename = [[NSString alloc] initWithData:(NSData*)dataParam encoding:NSUTF8StringEncoding]; NSData *videoData = [NSData dataWithContentsOfFile:filename]; [self utfAppendBody:body data:[NSString stringWithFormat:@"Content-Disposition: form-data; filename=\"%@\"\r\n",[filename lastPathComponent]]]; [self utfAppendBody:body data:[NSString stringWithFormat:@"Content-Type: video/%@\r\n\r\n",[[filename lastPathComponent] pathExtension]]]; [body appendData:videoData]; [filename release]; } [self utfAppendBody:body data:endLine];
}
}return body;
}
from facebook-ios-sdk.
Our video upload tier is having some issue and got quite high failure rate. We have an engineer devoted working on solving this issue. We will not include the video upload in the SDK until that issue solved. For your url , you mean l http://api-video.facebook.com/restserver.php instead of l http://api-video.facebook.com/resetserver.php isn't it?
from facebook-ios-sdk.
yes that is true.. thanks for your update.How long it will take to fix this issue.
from facebook-ios-sdk.
Thanks for the reply.
I need a clarification. I have downloaded applications from itunes like iuploader,etc which are uploading videos to the facebook still. what sdk they are using ? How they are doing the things.
from facebook-ios-sdk.
Any updates on this? I'm using the old SDK only because it supports video uploading. But it's starting to get a little wonky...
from facebook-ios-sdk.
@jasongregori
No updates from facebook guys yet..... am waiting for that too.
from facebook-ios-sdk.
Hello all,
Any one figured out how to upload the videos to face book?
Any help is really appreciated.
Thanks in advance,
Madhu.
from facebook-ios-sdk.
+1 for this, I'm trying to implement this feature as well.
from facebook-ios-sdk.
They are likely using http://developers.facebook.com/docs/reference/rest/video.upload.
I'll opened an issue to get this added to new SDK.
FB Task #439513
from facebook-ios-sdk.
I’ve added a pull request for a class that does video uploads using a combination of the old and the new API, see #153.
from facebook-ios-sdk.
very cool, thanks
from facebook-ios-sdk.
We're tracking this in task #153.
from facebook-ios-sdk.
Related Issues (20)
- Login interface abnormal when Facebook is not installed(iPad Pro 2020,iOS 13.7)
- GraphRequest.start { connection, result, error } doesn't complete after the app is deauthorized from account
- How to make App Events work in Events Manager. IOS 14.5+
- `FacebookCore` crashes at runtime when updating Facebook SDK from `14.1.0` to `16.3.1` HOT 1
- Facebook SDK: 'DEBUG' is not defined, evaluates to 0/Could not build module 'FBSDKCoreKit'
- There is no button in the Facebook login web view that can be used to jump to the FB client to complete the login
- FBAudienceNetworkLog spamming
- error: redefinition of 'FBSDKCoreError'
- App Hanging inside FBSDKTimeSpentData suspendTimeSpentData HOT 1
- isAutoLogAppEventsEnabled
- Share not suc in iOS 13.6
- Xcode 15.3 and App Store Connect Issue HOT 132
- Merge Facebook Terminal (Microsoft)
- iPad login authorization interface error
- My project code is written in object-c, and the sdk version is 16.2.1. I can run it on a real machine, but when I use the simulator, I get an error, and FBAEMReporter prompts #error unsupported Swift architecture
- Purchase event got ineligible for Meta AEM without any changes in the app HOT 2
- 'GitHub' Android Mobile Device
- I installed iOS SDK version 16.0.3 using the Swift Package Manager process, but when I checked on the Facebook developer account, it showed version 0.3.1.
- Wrong version in SPM Xcode 15.3, latest release 17.0.0 but SPM package declares 14.1.0 HOT 5
- I want to updating Facebook SDK to 17.0.0 bug it is fail ,please update to 17.0.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from facebook-ios-sdk.