Can not upload video to instagram with portrait mode - instagram-graph-api

I've faced such a strange experience. I'm trying to upload a video to my IG account using instagram graph api but it enables only landscape mode.
For example:
POST - https://graph.facebook.com/<account-id>/media?media_type=VIDEO&video_url=<1920x1080>.mp4
then it's ok, but if I try to upload
POST - https://graph.facebook.com/<account-id>/media?media_type=VIDEO&video_url=<1080x1920>.mp4
then the status code is "Error".

Related

How can i upload video to Twitter using IOS

I have a local video link, and i want when the user press the button -> show twitter app with my video and title there (without using UIActivityViewController), just by pressing the button
You have to choose which way you want to go to upload a video, i.e. post a tweet with just that title you've mentioned.
Option 1
Use the HTTP API and create a URLRequest that contains the video as 'attachment'. You have to handle authentication first or the request will most likely fail.
Option 2 (Not really an option anymore)
Another way would be the iOS SDK provided, as given in the other example here. Problem is: there is no longer an official Twitter SDK for iOS. You could try your luck with the archived OpenSource SDK but maintainability is pretty decent with this.

GameCenter get GKPlayer photo URL

How can I access the GameCenter player's photo URL? I know about loadPhotoForSize but it seems to return UIImage. I need the URL as I would like to send this URL to my backend and show this photo for users from non-iOS devices.
There is no available GameCenter player's photo URL. It may exist right now, but Apple can change it any moment. And it is not in open access.
Correct way to show player's photo on another non-iOS platforms is to upload this photo to your game servers. Use loadPhotoForSize to obtain UIImage and than upload it to your server. For example you can use answers from here: ios Upload Image and Text using HTTP POST

Youtube thumbnail 404ing

I recently uploaded the following video to youtube. http://youtu.be/5f3-N0kEz6E
I was initially able to choose a thumbnail from the dashboard. However, now when i go back to the dashboard none of the images are showing up, and i can see the following 404's in the developer console, see image link below.
This is affecting the share image when i post on facebook. See the developer debugger link here: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fyoutu.be%2F5f3-N0kEz6E
Why is this happening, and how can i now replace the thumbnail without having to reupload the whole video again? Will this resolve itself?

How to post Images and video on facebook in iPhone

I want to post Images and Video on my facebook wall. Some of the tags are deprecated which we are using for posting data through ios sdk of facebook.What are the new tags for posting images on facebook ?
Thanks
Check out this links.
These links are for posting video and photo in your facebook wall and it is updated too..
https://developers.facebook.com/docs/reference/api/photo/
https://developers.facebook.com/docs/reference/api/video/

email a video in iOS

I have an app that records a video and saves it straight to the photo library on the iPhone. I want to, as soon as the user finishes recording, have the app open up in mail, with the video attached. How should I go about doing this?
I am using this basic idea: http://blog.mugunthkumar.com/coding/iphone-tutorial-in-app-email/
How do I get the file path for the video?
You could either store the video in your app and then attach that into the email before copying it to the photo library or show the user their photo library in the app via UIImagePicker - This may help or just google it ...
http://developer.apple.com/library/ios/#samplecode/MyImagePicker/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010135

Resources