Skip to content

I got an issue with Angular 7 with the Frameworks: Inonic 4/Cordova #154

@Davicito81

Description

@Davicito81

Hello dear community of ngx-Facebook.

I'm trying to implement the ngx-favebook libary according to the instruction on:
https://github.com/zyra/ngx-facebook
in my project with Angular 7.3.9, Ionic 4.

First I allready have installed the facebook sdk with the following command line before:
npm i --save ngx-facebook to my Ionic 4 project

Then I have allready added this lines to my app.module.ts
import { FacebookModule } from 'ngx-facebook'; ... imports:[ ... FacebookModule.forRoot() ],

and this to my dashboardtab.page.ts
`
import { FacebookService, InitParams } from 'ngx-facebook';

export class DashboardtabPage{

constructor (private fbService: FacebookService){
let InitParams: InitParams = {
    appId            : 'xxxxxxx',  
    xfbml            : true, 
    version         : 'v3.3'
};
this.fbService.init(InitParams);   

}
}
`
Now when I'll use fb-video tags in the template
I got an issue when I'll start my projekt with the following error message:

ERROR Error: "Uncaught (in promise): Error: Template parse errors:
Can't bind to 'href' since it isn't a known property of 'fb-video'.

  1. If 'fb-video' is an Angular component and it has 'href' input, then verify that it is part of this module.
  2. If 'fb-video' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
    <fb-video [ERROR ->]href="{{fbPost.link}}">
    //$(document).ready(function("): ng:///DashboardtabPageModule/DashboardtabPage.html@27:18
    'fb-video' is not a known element:
  4. If 'fb-video' is an Angular component, then verify that it is part of this module.
  5. If 'fb-video' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
    [ERROR ->]
    //$(document).ready"): ng:///DashboardtabPageModule/DashboardtabPage.html@27:8

Can any one help?

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions