Closed (fixed)
Project:
Facebook Instant Articles
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2017 at 19:26 UTC
Updated:
24 Jul 2017 at 12:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Mytko Enko commentedComment #3
Mytko Enko commentedComment #4
m4oliveiCan you post an example chunk of markup that you are putting into your Body field?
Comment #5
Mytko Enko commentedIn CKeditor it looks this way:
In html output:
If it is H2, than it is appears in instant article, but H3, H4 and else are missing.
Comment #6
m4oliveiThanks! I was able to reproduce it. I've updated the description as it's not specific to RSS (RSS and API use the same code to generate the Instant Articles markup).
Will work out a solution shortly. Part of the complication is that the FBIA PHP SDK does ship with an H3 element, but it does not ship with an H3Rule. Furthurmore, it's not clear from the documentation how many levels of header the Instant Articles format will support.
Comment #7
m4oliveiFiled upstream issue in the FBIA PHP SDK: https://github.com/facebook/facebook-instant-articles-sdk-php/issues/234
Comment #8
m4oliveiSo far as I can tell we'll need to wait on the FBIA SDK upstream issue to be resolved. Unless I'm missing something, which is entirely possible. The Facebook folks are usually quick to respond.
Comment #9
m4oliveiHum, it appears that h3-h6 are not allowed and should be h2. This is what I get when trying to add h3-h6 using the Facebook Instant Article editor:
So perhaps the solution here is to transform h2-h6 inclusive into h2.
Comment #10
m4oliveiPR: https://github.com/BurdaMagazinOrg/module-fb_instant_articles/pull/107
@Mytko Enko could you review the above fix? This will transform h3-h6 into h2. Unless Facebook responds with some way to make h3-h6 work, it appears they don't support it.
Comment #11
m4oliveiConfirmed in the upstream issue, only h1-h2 are supported. This is the best we can do, transform h3-h6 into h2.
Comment #12
Mytko Enko commentedTransforming to h2 would perfectly solve the problem. But as for now headers are still missing, there is empty
at the place where headers supposed to appear.
Comment #13
m4oliveiDid you checkout the branch linked to in the above pull request?
Comment #14
Mytko Enko commented@m4olivei thanks a lot, #10 solved the problem. H3-h6 headers changed into h2 and now appearing in the instant articles.
Comment #15
sunset_bill commentedComment #16
m4oliveiMerged to 8.x-2.x. Thanks!