Some videos uploaded to facebook using iOS Facebook SDK give me the error "An error occurred while processing your request"
Checkout this fbcdn video
I'm trying to play that video on a MPMoviePlayerViewController. Some videos work fine, some videos just don't. The video plays just fine on Facebook, so it's not something related to its data.
Can't find any documentation about what this error is related to.
I came across this error page too, on the iOS on an iPhone 4 when using the Facebook app.
To play the video even if it comes up expired, locate the post you want and instead of tapping on the embedded video, choose the post date. If the post reads:
John Doe shared Jane Doe's video: December 1, 2012 at 9:30pm.
...then you tap the date & time on the post -the "December 1, 2012 at 9:30pm" part- and it will take you to the video without using the expired link. The video should play that way.
Good luck.
This means the link to the video is expired, usually it works for a 2 days period then it gets expired and you have to query the facebook graph API again to get a new link.
I replaced 'v' with 'embed' in url. It worked.
VideoUrl = VideoUrl.replace("/v/", "/embed/")
Related
I'm trying to upload a video using the API. I can successfully authenticate, upload and create a video and receive a video id. But when I query the processing status using https://api.dailymotion.com/video/{VideoId}?fields=status%2Ctitle%2Cpublishing_progress URL, it keeps returning "publishing_progress": 7 no matter how long I wait.
If I try to upload the same video using the website directly it will process it just fine.
I wonder if anyone else has encountered this issue and know how to solve it.
I think there is an issue with the source URL you associated to the video.
Have you correctly filled the URL field at the video creation (STEP 4.) with the URL returned by the API when you uploaded your video (on STEP 3.)?
If so, you would encourage you to contact our support with more details to dig further into possible issues
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.
I am trying to get the rating for a song via the Apple Music API, as it describes here.
Hence, the URL I am using is:
https://api.music.apple.com/v1/me/ratings/songs/493341471
493341471 is the playbackStoreID (of the MPMediaItem) of the song 'Born to Die'. I have this song in my library, and I have added it to my "loved" list both on iTunes on my computer and on my iPhone. Yet, when I make this GET request, I get back a 404 Resource not Found error from Apple.
I also tried the same url but using the MPMediaItem property persistentId (its persistentID is 2932020188133715832), and that didn't work either.
The documentation says the url format is
https://api.music.apple.com/v1/me/ratings/songs/{id}
and their example gives a 9 digit id, exactly as the playbackStoreID I used above.
I tried searching the Apple Music catalogue for this song, and the id that was returned was indeed 493341471.
Yet, no matter what I do, I get a resource not found. Anyone have any idea what "id" the documentation here may be referring to?
Seems like you have to like/dislike a specific song with your apple music account then you can get an HTTP 200 response.
I was trying to share a Youtube link and wanted the person to just see that clip without any of the irrelevant suggestions that pop up next to it. I knew that adding ?rel=0 (or &rel=0) at the end of the URL used to achieve this, but this doesn't seem to be working anymore. After googling a bit, I found suggestions to use the youtu.be domain instead of youtube.com, but suggestions were shown nonetheless, or the URL gave an error. How else can I share this link and have no 'related' clips shown on the side? Thanks!
rel=0 is used to disable related videos shown at the end of a video, not to remove the suggested videos in the sidebars.
You can use the embed URL to access the video on it's own - http://youtube.com/embed/dQw4w9WgXcQ. Add ?rel=0 to disable the related videos at the end too.
Note, that rel=0 no longer works if you are signed into your Google account (YouTube, Gmail, etc).
&rel=0 only works when not signed in. However, you can get around this by using the enhanced privacy mode:
https://www.youtube-nocookie.com/embed/[id]?rel=0
As of August 23, 2018,
The behavior for the rel parameter is changing on or after September
25, 2018. The effect of the change is that you will not be able to
disable related videos. However, you will have the option of
specifying that the related videos shown in the player should be from
the same channel as the video that was just played.
To be more specific:
Prior to the change, if the parameter's value is set to 0, then the player does not show related videos.
After the change, if the rel parameter is set to 0, the player will show related videos that are from the same channel as the video that was just played.
Using Twitter's API, I am able to get the list of tweets and so forth in the following format:
#Beyonce | I released a new music video today, check it out!
I am using "#{$status->user->screen_name} and that works fine, however I wanted to get the name of the account, ie in this case it would be Beyoncé Knowles.
I can't find anything that specifies in the documentation which parameter gets the name so I could use the following format:
Beyoncé Knowles #Beyonce | I released a new music video today, check it out!
Whoops, never mind! Just found it ;)
Use {$status->user->name}