SocialEngine 4.8.9 Upgrade – Patch for YouTube v3.0 API

Since YouTube deprecated the v2.0 API, SocialEngine clients were experiencing difficulties adding YouTube videos to their websites. Of course, the SocialEngine team was already aware of that and took immediate actions to resolve any issues related to the YouTube API. This was the main priority in SocialEngine v4.8.9, as it is now patched up for the latest YouTube v3.0 API.

The Issue

When trying to add videos to your SocialEngine installation prior version 48.9, you will receive an error message. Reviewing the main.log of SocialEngine, the actual error you will see is:

exception 'Zend_Gdata_App_HttpException' with message 'Expected response code 200, got 410

This is because older SocialEngine releases were not updated for the YouTube v3.0 API, which required some modifications. The issue was reported in GitHub, but the SocialEngine team were already aware of that and working to release a fix in new version product. The official SocialEngine 4.8.9 changelog provides more information about the fixes you get with it.

Today, we will review the steps for resolving the issue by adding YouTube videos on your website. We will review them for you, so you can fix the YouTube video upload completely.

Upgrade Video Sharing Module

To resolve any issues that you are experiencing when adding YouTube videos to your website, there are a few things you need to do first. You will have to update the Video Sharing module on your website. Log into your SocialEngine Client Panel and download the latest release.

Find and Upgrade Video Sharing Module in SocialEngine

The next thing is to log into the administrative area of your website. Click on the Manage menu item and then Packages & Plugins.

Find Packages and Plugins in SocialEngine Administrative Area

Upload your Video Sharing v4.8.9 package and complete the installation the usual way. You can also have a look at our tutorial on how to install SocialEngine modules, for more detailed information about the process.

Upload Video Sharing Package and Complete the Installation

Get YouTube API Key

The second step is to get a YouTube API Key. If you do not have a Google Account, you will have to create one. When you have an account and you are logged in, you can navigate to the Developer Console so you can create your API key. Click on the Create Project button to proceed further. First, you will have to set a name for it.

Create YouTube API Key

You have just created a new project and you will now have to give it the authorization to use the YouTube API. For that purpose, click on the APIs & auth button on the left-side menu and then APIs.

Give your new Project Authorization to use the YouTube API

You will be presented with a list of options. Locate and select the YouTube Data API.

Locate and Select the YouTube Data API from a List of Options

Click on the Enable API button and allow some time. Once it is enabled, click on the Credentials button on the left-side menu.

Click on the Enable API Button

In the Public API Access section, click on Create New Key button. A pop-up window will come up on the screen. You need to select the Server Key option on it.

Click on Create New Key button and Select Server Key Option

You will be prompted for additional options, but you need to leave them blank. Do not enter any information and simply click on the Create button. Your API key will be created successfully and displayed on the same page.

Click on the Create button to get API Key

Configure the Video Sharing Module

When you obtain the YouTube API key, you can proceed with the configuration of your Video Sharing module. For that purpose, log into the administrative area of your SocialEngine website. Click on Plugins and then select Videos.

SocialEngine Click on Plugins and Select Videos

Select the Global Settings tab and then enter your YouTube API key.

Selecting Global Settings and Entering your YouTube API key

Save the new settings and test adding YouTube videos on your website. This will work without any issues at all now. Still, if you experience any difficulties at all, you can open a ticket to our Technical Support team so they can assist you with the configuration. If you are not a client of our company, we definitely suggest reviewing our SocialEngine Hosting plans for better performance and security for your website, as well as full 24/7 Technical Support assistance whenever you need that!

Dimitar

Dimitar is Director of Technical Support at FastComet. He has dedicated more than ten years toward bridging gaps between customer satisfaction and technical support. As the leader of our support organization, he’s responsible for educating, empowering and recognizing our support team and focusing on the science and art of quality, productivity, and technical prowess. He likes to be challenged with the tasks and do the research to approach the goal desired.