There have been some recent changes to the Facebook API that may break existing items using it. These items need to be updated as soon as possible.
Edit: Because of delays in sending the email promised below, we have extended the target completion date from 18 August to 1 September 2014.
Key Points
Existing items using the Facebook API must be updated to use Version 2.0 of the API by 1 September 2014 or they will be soft disabled. Please note we will be notifying all authors of affected items by e-mail within 7 days of posting this announcement. We will also notify any author whose item is consequently soft disabled after 1 September.
New items using the Facebook API will not be accepted unless they use Version 2.0 of the API, with immediate effect.
Items designed to work with Version 2.0 of the API key should have a tag of 'facebook 2.0 api'.
Background
On 30 April 2014, Facebook released Version 2.0 of their API. Although Version 1.0 will continue to work until 30 April 2015, apps created after 30 April 2014 will not be able to make calls to it. They must use Version 2.0. You can read more here: https://developers.facebook.com/docs/apps/changelog
Buyers purchasing an item from CodeCanyon that uses Version 1.0 of the Facebook API, will not be able to use it. As the item will be registered with Facebook after 30 April 2014, it will only work with Version 2 of the API.
Requirements
If you are the author of an item that uses the Facebook API, you need to make sure it is updated to work with Version 2.0 of the API as soon as possible. If this is not done by 1 September 2014, the item will be soft disabled (and you will be contacted by e-mail) until such time that it has been updated.
Additionally, new items that use the Facebook API will only be accepted if they work with Version 2.0 of the API. New items that only work with Version 1.0 will not be accepted.
To allow us to track items that do work with the version 2.0 of the API, can you please add a âfacebook 2.0 apiâ to items that do work with Version 2.0 of the API. This will also allow buyers to identify whether an item is âsafeâ to purchase.
Of interest how will you know what version of the API a plugin uses? Do you have a method for searching the code of all uploaded items to determine this?
Of interest how will you know what version of the API a plugin uses? Do you have a method for searching the code of all uploaded items to determine this?
Looks like theyâre going off the item description/tags. Anything that doesnât have facebook 2.0 api in it will be notified/soft disabled. Or they could have some super cool ninja way of examining item code/content in bulk.
Sorry, no super cool ninja tricks. We have a list of items that we believe use the Facebook API. Weâll be performing a manual check of these items to confirm whether they do use the API and, if so, which version they use.
Reminds me that one of my apps is probably using V1 of the Facebook SDK. I wonder how easy it is to swap it out.
I couldnât tell you how easy / hard it is to make the change, but itâs something that needs to be done. You should be able to learn more at Facebookâs site. Best of luck!
Itâs shame as Facebook PHP SDK V4 (php-sdk-v4) Requires at least PHP 5.4 and many hosting companies are not yet hosting PHP 5.4
Iâve already had to move away from WP Engine just recently because theyâre stuck on PHP 5.3.x after raising a support ticket and basically being told to leave if I didnât like it. This is now just another reason WP Engine may lose more customers or have to upgrade.
Is there any simple way to update the tags to add the âfacebook 2.0 apiâ when the item is already based on the new Facebook API version, other then having to re-upload the full item and redo a review process just to add a new tag?
Is there any simple way to update the tags to add the âfacebook 2.0 apiâ when the item is already based on the new Facebook API version, other then having to re-upload the full item and redo a review process just to add a new tag?
Hi Yougapi,
You need to submit with the new tag and it will still need to go through the review process, but you donât actually need to upload the item. Hope that makes sense.
Just a note that because of delays in sending the email promised above, we have extended the target completion date from 18 August to 1 September 2014.
As an advice for other authors who have projects using facebook api,
Facebook php sdk by default use the api v2
,All permissions in the api v2 needs to be Reviewed first.
so here you find yourself in the middle of a problem you canât switch the php sdk to version 2 of facebook api.
::Solution::
Change
$facebook->api(â/meâ);
To
$facebook->api(âv1.0/meâ);
A smart way to change all your requests
Using Sublime text or Notepad++ , Press Ctrl + f and select find in files,
Then Replace $facebook->api( to be $facebook->api( âv1.0â .
adding " âv1.0â . "
@iSocial You should know that the API requests made through Facebook apps created after April 30, 14, will automatically redirect to the Facebook v2.0, even though the v1.0 is specified, so the solution to just call the v1.0 may work for older apps, but will not work for newly created Facebook apps
Better to update the full app to v2.0 exclusively, if you want your app to have a consistant behaviour with any Facebook app regardless of its creation date
For the latest version of facebook api, I will use facebookâs latest sdk for PHP. And that sdk needs at least PHP 5.4.x . Do you think it is a good idea to force users to upgrade their php version to 5.4? Most hosting providers do not support this version of PHP.
For the latest version of facebook api, I will use facebookâs latest sdk for PHP. And that sdk needs at least PHP 5.4.x . Do you think it is a good idea to force users to upgrade their php version to 5.4? Most hosting providers do not support this version of PHP.
Hi HĂźseyin,
I understand your concern.
PHP 5.4 has been out for almost two and a half years and PHP 5.3 is past the scheduled end of life date, so any decent hosting providers should have upgraded by now. Still, Iâm sure there are quite a few hosts who havenât updated yet.
However, in this case, we donât really have much of a choice. Some buyers using older version of PHP may be affected, but thatâs better than all new buyers being unable to get the item to talk to the API.