Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Releases: facebookarchive/facebook-instant-articles-sdk-php

v1.10.2

12 Apr 18:42
6f305ff
Compare
Choose a tag to compare

This release adds the ability to retrieve the CSS selector of DOM elements that generate transformation warnings (#369) by @nataliemt.

v1.10.1

21 Mar 19:04
acefb2a
Compare
Choose a tag to compare
  • Allows use of Analytics and Ads when calling Transformer::transform directly.

v1.10.0

29 Nov 14:57
ddd5925
Compare
Choose a tag to compare

This release deprecates the usage of data-feedback from media components, like Image, Video and Slideshows.

Commonly used attribute into the figure.

<figure data-feedback="fb:likes, fb:comments">
  <img src="http://mydomain.com/path/to/img.jpg" />
</figure>

This takes no effect and we stopped outputting in case this gets enabled. So the methods enabling/disabling data-feedback are set to do nothing now. As it would be a breaking change, the full removal of those methods will happen in v2.0.0

v1.9.2

16 Mar 19:46
Compare
Choose a tag to compare

Bug fixes:
#324

v1.9.1

09 Mar 13:22
Compare
Choose a tag to compare

Bug fixes:
#319

v1.9.0

27 Feb 20:56
Compare
Choose a tag to compare

New feature of transforming and setting content within Instant articles by the Rules.json settings.

Now you are able to add 3 new named properties to your rule set and then these will be added by default into your transformed Instant articles.
Be sure you are using the Transformer::transformString method

  • style_name: Have the default style to be applied to your Instant Article after transformation occurs
  • ads: Has the settings for your ADS, so any new transformed article will have that AD setup
  • analytics: Default structure for setting up the analytics and tracking code for your Instant Articles

There is an easier option for ADS (putting just the Audience Network Placing ID) and one for Analytics, where you can just set it up your FB Pixel id.

Example with AN placement ID and Analytics with FB Pixel:

"style_name" : "mydefaultstyle",
    "ads" : {
        "audience_network_placement_id": "1234",
        "raw_html": "<script>alert('hello world!');</script><div class='block'></div>"
    },
    "analytics" : {
        "fb_pixel_id": "4321",
        "raw_html": "<script>alert('hello world!');</script><div class='block'></div>"
    },
    "rules" :
        [
            ...
        ] 
}

v1.8.4

09 Feb 16:34
Compare
Choose a tag to compare

Improvements:
#315

v1.8.3

04 Feb 23:13
3743979
Compare
Choose a tag to compare
Bump version to 1.8.3

v1.8.2

30 Jan 15:10
72cdc91
Compare
Choose a tag to compare

Fixes a bug where the article content was not correctly transformed when using GlobalRule.

v1.8.1

22 Jan 18:14
Compare
Choose a tag to compare

Bug fixes:
#309
#307