{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/facebook-ios-sdk/issues/724","labels_url":"https://api.github.com/repos/facebook/facebook-ios-sdk/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-ios-sdk/issues/724/comments","events_url":"https://api.github.com/repos/facebook/facebook-ios-sdk/issues/724/events","html_url":"https://github.com/facebook/facebook-ios-sdk/issues/724","id":65671684,"number":724,"title":"Possible bug: video upload - FB SDK 4.0.0","user":{"login":"tarokker","id":213235,"avatar_url":"https://avatars.githubusercontent.com/u/213235?v=3","gravatar_id":"","url":"https://api.github.com/users/tarokker","html_url":"https://github.com/tarokker","followers_url":"https://api.github.com/users/tarokker/followers","following_url":"https://api.github.com/users/tarokker/following{/other_user}","gists_url":"https://api.github.com/users/tarokker/gists{/gist_id}","starred_url":"https://api.github.com/users/tarokker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarokker/subscriptions","organizations_url":"https://api.github.com/users/tarokker/orgs","repos_url":"https://api.github.com/users/tarokker/repos","events_url":"https://api.github.com/users/tarokker/events{/privacy}","received_events_url":"https://api.github.com/users/tarokker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T12:24:34Z","updated_at":"2015-04-01T15:17:34Z","closed_at":"2015-04-01T15:17:34Z","body":"Hi,\r\nI cannot understand if i'm doing something wrong or there is a wrong condition in the SDK.\r\nI'm trying to upload a video with latest (4.0.0) SDK, using the following lines:\r\n\r\n```\r\n        FBSDKShareVideo *video = [FBSDKShareVideo videoWithVideoURL:<my local file NSURL>];\r\n        FBSDKShareVideoContent *content = [[FBSDKShareVideoContent alloc] init];\r\n        content.video = video;\r\n        [FBSDKShareDialog showFromViewController:self withContent:content delegate:self];\r\n```\r\nI'm using a local mp4 file saved in the application cache sandbox folder.\r\nThe SDK blocks me with the error: \r\n\"Only asset file URLs are allowed for the native dialog.\"\r\nGoing deeper in the SDK sources, I found it matches the condition in the file \"FBSDKShareKit/FBSDKShareKit/FBSDKShareDialog.m\" (line 551 - function '- (BOOL)_validateShareContentForNative:(NSError **)errorRef' )\r\n\r\nI don't understand if this condition is wrong or what:\r\n```\r\nif (((FBSDKShareVideoContent *)shareContent).video.videoURL.isFileURL) {\r\n```\r\n\r\nThis is the NSURL i'm trying to use:\r\n```\r\n    NSURL *exportURL = [NSURL fileURLWithPathComponents:[NSArray arrayWithObjects:\r\n                               [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject],@\"final.mp4\",\r\n                               nil]];\r\n```\r\n\r\nWhat kind of NSURL does the SDK expect?\r\n\r\nBy the way, negating the condition worked perfectly.\r\nIs this a bug or am I doing someting wrong?\r\n\r\nThanks in advance.\r\nRegards.\r\n"}}