3

I want to post my website made in Angular 4 as Instant Article . example:- when user open app.example.com on facebook contents of index.html will be loaded on Instant Article.

ajit-jain
  • 206
  • 2
  • 6
  • this question is really huge in scope, I suggest you break it down and ask specific question. – Deepak Jha Dec 09 '17 at 10:47
  • i am a bit new to this. I was wondering can i load my angular [app](http://jain.outgrow.co.in/jain-12) inside instant article. Is it even possible without iframes – ajit-jain Dec 09 '17 at 10:53
  • ok so your question is how to load an angular app inside a div tag of html? – Deepak Jha Dec 09 '17 at 10:55
  • No, i want instant article fully behaved like my app. means in article my javascript and index.html will run – ajit-jain Dec 09 '17 at 11:17
  • Can you elaborate about your page/article? The link you had mentioned is not working, can you provide an alternative link ? – RamC Dec 15 '17 at 14:10
  • This is an public link from my angular website the content in it is fully dynamic ,I want whenever http://jain.outgrow.co.in/jain-12 this link is posted in Facebook it will open as an instant article . It’s index.html is run in instant article – ajit-jain Dec 17 '17 at 13:04
  • 1
    Simple answer: This is not possible. FB does not digest JavaScript or even CSS. – masterfloda Dec 18 '17 at 21:38

1 Answers1

4

The Facebook widget won't load your Custom / Random / JS-based HTML. Try:

  • server-side HTML rendering and using the correct HTML tags you'll be able to do it.
  • More HTML and less Angular for managing just the necessary aspects of your Web.

Instant Article Documentation

How-To Format

Jose Cordero
  • 526
  • 5
  • 15