Releases: facebookarchive/facebook-instant-articles-sdk-php
v1.10.2
v1.10.1
- Allows use of Analytics and Ads when calling
Transformer::transform
directly.
v1.10.0
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
v1.9.1
v1.9.0
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 occursads
: Has the settings for your ADS, so any new transformed article will have that AD setupanalytics
: 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
v1.8.3
Bump version to 1.8.3
v1.8.2
Fixes a bug where the article content was not correctly transformed when using GlobalRule.